Skip to content

Commit

Permalink
Merge pull request #8 from DanilaFe/fix-restart-server
Browse files Browse the repository at this point in the history
Unset the error handler before stopping the language server.
  • Loading branch information
DanilaFe authored Mar 12, 2024
2 parents 2380d70 + 77908bc commit 119d4d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ChapelLanguageClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ export abstract class ChapelLanguageClient {
stop(): Promise<void> {
return new Promise((resolve, reject) => {
if (this.client && this.state === LanguageClientState.RUNNING) {
this.client.errorHandler = () => {};
this.client.stop().catch(reject);
this.client.dispose();
this.client = undefined;
Expand Down

0 comments on commit 119d4d0

Please sign in to comment.