File tree 1 file changed +2
-1
lines changed
extensions/typescript-language-features/src/tsServer
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import * as vscode from 'vscode' ;
7
7
import * as nls from 'vscode-nls' ;
8
+ import * as path from 'path' ;
8
9
import { TypeScriptServiceConfiguration } from '../utils/configuration' ;
9
10
import { Disposable } from '../utils/dispose' ;
10
11
import { ITypeScriptVersionProvider , TypeScriptVersion } from './versionProvider' ;
@@ -109,7 +110,7 @@ export class TypeScriptVersionManager extends Disposable {
109
110
run : async ( ) => {
110
111
await this . workspaceState . update ( useWorkspaceTsdkStorageKey , true ) ;
111
112
const tsConfig = vscode . workspace . getConfiguration ( 'typescript' ) ;
112
- await tsConfig . update ( 'tsdk' , version . pathLabel , false ) ;
113
+ await tsConfig . update ( 'tsdk' , path . dirname ( version . tsServerPath ) , false ) ;
113
114
this . updateActiveVersion ( version ) ;
114
115
} ,
115
116
} ;
You can’t perform that action at this time.
0 commit comments