Fix TS resolved paths when on vfs

For #136433

These paths always have to start with `/`
This commit is contained in:
Matt Bierner 2022-02-28 17:27:43 -08:00
parent b698d639a8
commit e04c70a676
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -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);
}
}