diff --git a/src/components/editor/MonacoEditor/lsp.ts b/src/components/editor/MonacoEditor/lsp.ts index 3322aea..5f21bd7 100644 --- a/src/components/editor/MonacoEditor/lsp.ts +++ b/src/components/editor/MonacoEditor/lsp.ts @@ -73,7 +73,11 @@ export default function createLSPConnection(language: 'cpp' | 'python') { console.error('Connection died'); } - notify('Connection closed'); + if (event.reason) { + notify('Connection closed: ' + event.reason); + } else { + notify('Connection closed'); + } if (languageClient) { languageClient.stop();