From 8bc2416283516324f3ec12b3badf839dafcc2a62 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Sat, 31 Aug 2024 03:59:41 +0800 Subject: [PATCH] fix(language-server): leaking named pipes --- packages/language-server/lib/hybridModeProject.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/language-server/lib/hybridModeProject.ts b/packages/language-server/lib/hybridModeProject.ts index 985ec5a3b5..c1d629647e 100644 --- a/packages/language-server/lib/hybridModeProject.ts +++ b/packages/language-server/lib/hybridModeProject.ts @@ -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);