Skip to content

Commit f84a0c5

Browse files
committed
1 parent b96ce60 commit f84a0c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/typescript-language-features/src/tsServer/versionManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import * as vscode from 'vscode';
77
import * as nls from 'vscode-nls';
8+
import * as path from 'path';
89
import { TypeScriptServiceConfiguration } from '../utils/configuration';
910
import { Disposable } from '../utils/dispose';
1011
import { ITypeScriptVersionProvider, TypeScriptVersion } from './versionProvider';
@@ -109,7 +110,7 @@ export class TypeScriptVersionManager extends Disposable {
109110
run: async () => {
110111
await this.workspaceState.update(useWorkspaceTsdkStorageKey, true);
111112
const tsConfig = vscode.workspace.getConfiguration('typescript');
112-
await tsConfig.update('tsdk', version.pathLabel, false);
113+
await tsConfig.update('tsdk', path.dirname(version.tsServerPath), false);
113114
this.updateActiveVersion(version);
114115
},
115116
};

0 commit comments

Comments
 (0)