diff --git a/src/app/playground/page.tsx b/src/app/playground/page.tsx index 0d788b5..83373d3 100644 --- a/src/app/playground/page.tsx +++ b/src/app/playground/page.tsx @@ -172,35 +172,44 @@ export default function PlaygroundPage() { - { - editorRef.current = editor; - if (editorRef.current) { - const model = editorRef.current.getModel(); - if (model) { - const lineCount = model.getLineCount(); - const lastLineLength = model.getLineLength(lineCount); - editorRef.current.setPosition({ - lineNumber: lineCount, - column: lastLineLength + 1, - }); - editorRef.current.focus(); - connectToLanguageServer(language, webSocketRef) - .then((languageClient) => { - languageClientRef.current = languageClient; - }) - .catch((error) => { - console.error("Failed to connect to language server:", error); - }); - } - } - }} - /> +
+
+
+ { + editorRef.current = editor; + if (editorRef.current) { + const model = editorRef.current.getModel(); + if (model) { + const lineCount = model.getLineCount(); + const lastLineLength = model.getLineLength(lineCount); + editorRef.current.setPosition({ + lineNumber: lineCount, + column: lastLineLength + 1, + }); + editorRef.current.focus(); + connectToLanguageServer(language, webSocketRef) + .then((languageClient) => { + languageClientRef.current = languageClient; + }) + .catch((error) => { + console.error( + "Failed to connect to language server:", + error + ); + }); + } + } + }} + /> +
+
+
); }