mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
This commit is contained in:
committed by
Matt Bierner
parent
174b9ad957
commit
8eddfa2cfb
@@ -581,7 +581,7 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient
|
||||
if (resource.scheme === fileSchemes.walkThroughSnippet || resource.scheme === fileSchemes.untitled) {
|
||||
const dirName = path.dirname(resource.path);
|
||||
const fileName = this.inMemoryResourcePrefix + path.basename(resource.path);
|
||||
return resource.with({ path: path.join(dirName, fileName) }).toString(true);
|
||||
return resource.with({ path: path.posix.join(dirName, fileName) }).toString(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -611,7 +611,7 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient
|
||||
const dirName = path.dirname(resource.path);
|
||||
const fileName = path.basename(resource.path);
|
||||
if (fileName.startsWith(this.inMemoryResourcePrefix)) {
|
||||
resource = resource.with({ path: path.join(dirName, fileName.slice(this.inMemoryResourcePrefix.length)) });
|
||||
resource = resource.with({ path: path.posix.join(dirName, fileName.slice(this.inMemoryResourcePrefix.length)) });
|
||||
}
|
||||
}
|
||||
return resource;
|
||||
|
||||
Reference in New Issue
Block a user