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);