Skip to content

Commit b8cd5b9

Browse files
committed
Disable open trigger file in configFileEvent
Workaround for #28593 **Bug** TypeScript Server is hanging onto a file in `node_modules/.staging`, causing npm installs to fail. I believe the root cause is that 0d5c9f4 changed vscode logic to always open the `triggerFile` in config diagnostic events. In this case, TS sends us a trigger file from `.staging` which we then tell the TS Server to open **Fix** Disable checking the trigger file
1 parent 6dbe2f0 commit b8cd5b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/typescript/src/typescriptMain.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,9 @@ class TypeScriptServiceClientHost implements ITypescriptServiceClientHost {
660660
return;
661661
}
662662

663-
(body.triggerFile ? this.findLanguage(body.triggerFile) : this.findLanguage(body.configFile)).then(language => {
663+
// TODO: restore opening trigger file?
664+
// body.triggerFile ? this.findLanguage(body.triggerFile)
665+
(this.findLanguage(body.configFile)).then(language => {
664666
if (!language) {
665667
return;
666668
}

0 commit comments

Comments
 (0)