Skip to content

Commit e04c70a

Browse files
committed
Fix TS resolved paths when on vfs
For #136433 These paths always have to start with `/`
1 parent b698d63 commit e04c70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/typescript-language-features/src/typescriptServiceClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
731731
if (filepath.startsWith(this.inMemoryResourcePrefix)) {
732732
const parts = filepath.match(/^\^\/([^\/]+)\/(.+)$/);
733733
if (parts) {
734-
const resource = vscode.Uri.parse(parts[1] + ':' + parts[2]);
734+
const resource = vscode.Uri.parse(parts[1] + ':/' + parts[2]);
735735
return this.bufferSyncSupport.toVsCodeResource(resource);
736736
}
737737
}

0 commit comments

Comments
 (0)