mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix TS resolved paths when on vfs
For #136433 These paths always have to start with `/`
This commit is contained in:
parent
b698d639a8
commit
e04c70a676
|
@ -731,7 +731,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
|||
if (filepath.startsWith(this.inMemoryResourcePrefix)) {
|
||||
const parts = filepath.match(/^\^\/([^\/]+)\/(.+)$/);
|
||||
if (parts) {
|
||||
const resource = vscode.Uri.parse(parts[1] + ':' + parts[2]);
|
||||
const resource = vscode.Uri.parse(parts[1] + ':/' + parts[2]);
|
||||
return this.bufferSyncSupport.toVsCodeResource(resource);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue