提交 de28ea63 编写于 作者: M Matt Bierner 提交者: GitHub

Add extra check tsdk path when getting version. Fixes #19600 (#19886)

上级 c377fce1
......@@ -604,6 +604,10 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
}
private getTypeScriptVersion(serverPath: string): string | undefined {
if (!fs.existsSync(serverPath)) {
return undefined;
}
let p = serverPath.split(path.sep);
if (p.length <= 2) {
return undefined;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册