Don't make URI for task cwd when UNC

Fixes #93724
This commit is contained in:
Alex Ross 2020-05-26 13:50:48 +02:00
parent 9734b13877
commit 89e9395125

View file

@ -1043,7 +1043,7 @@ export class TerminalTaskSystem implements ITaskSystem {
}
}
// This must be normalized to the OS
shellLaunchConfig.cwd = resources.toLocalResource(URI.from({ scheme: Schemas.file, path: cwd }), this.environmentService.configuration.remoteAuthority);
shellLaunchConfig.cwd = isUNC(cwd) ? cwd : resources.toLocalResource(URI.from({ scheme: Schemas.file, path: cwd }), this.environmentService.configuration.remoteAuthority);
}
if (options.env) {
shellLaunchConfig.env = options.env;