未验证 提交 a6833ed8 编写于 作者: J Jean Pierre 提交者: GitHub

proper fix for #105202 (#106293)

上级 e969bc18
......@@ -5,7 +5,6 @@
import * as vscode from 'vscode';
import * as nls from 'vscode-nls';
import * as path from 'path';
import { TypeScriptServiceConfiguration } from '../utils/configuration';
import { Disposable } from '../utils/dispose';
import { ITypeScriptVersionProvider, TypeScriptVersion } from './versionProvider';
......@@ -110,7 +109,7 @@ export class TypeScriptVersionManager extends Disposable {
run: async () => {
await this.workspaceState.update(useWorkspaceTsdkStorageKey, true);
const tsConfig = vscode.workspace.getConfiguration('typescript');
await tsConfig.update('tsdk', path.dirname(version.tsServerPath), false);
await tsConfig.update('tsdk', version.pathLabel, false);
this.updateActiveVersion(version);
},
};
......
......@@ -104,7 +104,8 @@ export class DiskTypeScriptVersionProvider implements ITypeScriptVersionProvider
return [
new TypeScriptVersion(source,
serverPath,
DiskTypeScriptVersionProvider.getApiVersion(serverPath))
DiskTypeScriptVersionProvider.getApiVersion(serverPath),
tsdkPathSetting)
];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册