Skip to content

Commit

Permalink
provide reason for connection closing
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodingwizard committed Jun 7, 2024
1 parent c7969f7 commit 8878831
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/editor/MonacoEditor/lsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8878831

Please sign in to comment.