Skip to content

Commit

Permalink
fix(language-server): leaking named pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Aug 30, 2024
1 parent 306936b commit 8bc2416
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/language-server/lib/hybridModeProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function createHybridModeProject(
async getLanguageService(uri) {
const fileName = asFileName(uri);
const namedPipeServer = (await searchNamedPipeServerForFile(fileName));
namedPipeServer?.socket.end();
if (namedPipeServer?.projectInfo?.kind === 1) {
const tsconfig = namedPipeServer.projectInfo.name;
const tsconfigUri = URI.file(tsconfig);
Expand Down

0 comments on commit 8bc2416

Please sign in to comment.