Skip to content

Commit

Permalink
Stop language server on extension deactivate (#58)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman committed Dec 4, 2024
1 parent 8e1da3d commit 569b31b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/ts/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function stopLanguageServer() {
if (!languageClient) {
return;
}
languageClient.stop()
languageClient.stop();
}

function onDidChangeConfiguration(event: vscode.ConfigurationChangeEvent) {
Expand Down Expand Up @@ -178,5 +178,6 @@ export function activate(context: vscode.ExtensionContext) {
}

export function deactivate() {
stopLanguageServer();
extensionContext = null;
}

0 comments on commit 569b31b

Please sign in to comment.