mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 19:59:37 +00:00
Fix TS resolved paths when on vfs
For #136433 These paths always have to start with `/`
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user