File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
extensions/typescript-language-features/src/languageFeatures Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import * as jsonc from 'jsonc-parser' ;
7
- import { basename , dirname , join , posix } from 'path' ;
7
+ import { basename , posix } from 'path' ;
8
8
import * as vscode from 'vscode' ;
9
9
import { Utils } from 'vscode-uri' ;
10
10
import { coalesce } from '../utils/arrays' ;
@@ -103,11 +103,11 @@ class TsconfigLinkProvider implements vscode.DocumentLinkProvider {
103
103
}
104
104
105
105
private getFileTarget ( document : vscode . TextDocument , node : jsonc . Node ) : vscode . Uri {
106
- return vscode . Uri . file ( join ( dirname ( document . uri . fsPath ) , node . value ) ) ;
106
+ return vscode . Uri . joinPath ( Utils . dirname ( document . uri ) , node . value ) ;
107
107
}
108
108
109
109
private getFolderTarget ( document : vscode . TextDocument , node : jsonc . Node ) : vscode . Uri {
110
- return vscode . Uri . file ( join ( dirname ( document . uri . fsPath ) , node . value , 'tsconfig.json' ) ) ;
110
+ return vscode . Uri . joinPath ( Utils . dirname ( document . uri ) , node . value , 'tsconfig.json' ) ;
111
111
}
112
112
113
113
private getRange ( document : vscode . TextDocument , node : jsonc . Node ) {
You can’t perform that action at this time.
0 commit comments