Skip to content

Commit

Permalink
Merge pull request #943 from BetterThanTomorrow/fix/orphaned_lsp_proc…
Browse files Browse the repository at this point in the history
…esses

Fix orphaned lsp processes
  • Loading branch information
bpringe committed Jan 12, 2021
2 parents b26879b + 57b359d commit 55495af
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changes to Calva.

## [Unreleased]
- Fix: [calva.jackInEnv does not resolve `${env:...}`](https://github.com/BetterThanTomorrow/calva/issues/933)
- Update clojure-lsp to version 2021.01.12-02.18.26. Fix: [clojure-lsp processes left running/orphaned if VS Code is closed while the lsp server is starting](https://github.com/BetterThanTomorrow/calva/issues/906)

## [2.0.148] - 2021-01-07
- Update clojure-lsp to version 2021.01.07-20.02.02
Expand Down
Binary file modified clojure-lsp.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion download-lsp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { createWriteStream } = require('fs');
const { https } = require('follow-redirects');

const clojureLspVersion = '2021.01.07-20.02.02';
const clojureLspVersion = '2021.01.12-02.18.26';
const fileName = "./clojure-lsp.jar"

const file = createWriteStream(fileName);
Expand Down
31 changes: 19 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,12 @@ function activate(context: vscode.ExtensionContext) {
}
}

async function deactivate() {
function deactivate(): Promise<void> | undefined {
state.analytics().logEvent("LifeCycle", "Deactivated").send();
jackIn.calvaJackout();
paredit.deactivate();
if (lspClient) {
await lspClient.stop();
return lspClient.stop();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function activate(context: vscode.ExtensionContext): LanguageClient {
}, (_progress, _token) => {
return client.onReady();
});
context.subscriptions.push(client.start());
client.start();

// The title of this command is dictated by clojure-lsp and is executed when the user clicks the references code lens above a symbol
context.subscriptions.push(vscode.commands.registerCommand('code-lens-references', async (_, line, character) => {
Expand Down

0 comments on commit 55495af

Please sign in to comment.