Pass TS Server the original fs path (#177292)

For #177083

We've had code to normalize the file path for a long time but I don't think it's needed. In the case of samba paths, it also appears to break things

Let's try dropping it and passing along the original `fsPath` instead
This commit is contained in:
Matt Bierner
2023-03-15 15:00:15 -07:00
committed by GitHub
parent 3e5253b143
commit 54921d7173

View File

@@ -697,12 +697,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
}
if (resource.scheme === fileSchemes.file && !isWeb()) {
if (!resource.fsPath) {
return undefined;
}
// Convert to posix style path
return path.posix.normalize(resource.fsPath.split(path.sep).join(path.posix.sep));
return resource.fsPath;
}
return (this.isProjectWideIntellisenseOnWebEnabled() ? '' : this.inMemoryResourcePrefix)