You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -392,12 +396,12 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
392
396
393
397
this.info(`Using tsserver from location: ${modulePath}`);
394
398
if(!fs.existsSync(modulePath)){
395
-
window.showWarningMessage(localize('noServerFound','The path {0} doesn\'t point to a valid tsserver install. Falling back to bundled TypeScript version.',path.dirname(modulePath)));
396
-
modulePath=this.bundledTypeScriptPath;
397
-
if(!fs.existsSync(modulePath)){
398
-
window.showErrorMessage(localize('noBundledServerFound','VSCode\'s tsserver was deleted by a another application such as a misbehaving virus detection tool. Please reinstall VS Code.'));
399
+
window.showWarningMessage(localize('noServerFound','The path {0} doesn\'t point to a valid tsserver install. Falling back to bundled TypeScript version.',modulePath ? path.dirname(modulePath) : ''));
400
+
if(!this.bundledTypeScriptPath){
401
+
window.showErrorMessage(localize('noBundledServerFound','VSCode\'s tsserver was deleted by another application such as a misbehaving virus detection tool. Please reinstall VS Code.'));
399
402
returnreject(newError('Could not find bundled tsserver.js'));
400
403
}
404
+
modulePath=this.bundledTypeScriptPath;
401
405
}
402
406
403
407
letversion=this.getTypeScriptVersion(modulePath);
@@ -485,9 +489,9 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
0 commit comments