Skip to content

Commit

Permalink
isLanguageService flag, fix didDrop delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
bummoblizard committed Aug 15, 2024
1 parent 07a48d1 commit 1870c87
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/languageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const connectMonacoToLanguageServer = (
args: args,
redirectStderr: false,
workingDirectoryBookmark: pwdBookmark,
isLanguageService: true,
})
);
// quick hack: wait for the server to start (5 seconds)
Expand All @@ -58,11 +59,10 @@ export const connectMonacoToLanguageServer = (
languageIdentifier
);
languageClient.start();
reader.onClose(() => languageClient.stop());
};

webSocket.onclose = () => {
languageServerConnectionDidDrop(languageIdentifier);
reader.onClose(() => {
languageServerConnectionDidDrop(languageIdentifier);
languageClient.stop();
});
};
return webSocket;
};
Expand Down

0 comments on commit 1870c87

Please sign in to comment.