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 44 *--------------------------------------------------------------------------------------------*/
55
66import * as jsonc from 'jsonc-parser' ;
7- import { basename , dirname , join , posix } from 'path' ;
7+ import { basename , posix } from 'path' ;
88import * as vscode from 'vscode' ;
99import { Utils } from 'vscode-uri' ;
1010import { coalesce } from '../utils/arrays' ;
@@ -103,11 +103,11 @@ class TsconfigLinkProvider implements vscode.DocumentLinkProvider {
103103 }
104104
105105 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 ) ;
107107 }
108108
109109 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' ) ;
111111 }
112112
113113 private getRange ( document : vscode . TextDocument , node : jsonc . Node ) {
You can’t perform that action at this time.
0 commit comments