Skip to content

Commit c9aab8f

Browse files
committed
Fix tasks with linux to Windows remote
Fixes microsoft/vscode-remote-release#5989
1 parent 39d5332 commit c9aab8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
10841084
let windowsShellArgs: boolean = false;
10851085
if (platform === Platform.Platform.Windows) {
10861086
windowsShellArgs = true;
1087-
let basename = path.posix.basename(URI.file(shellLaunchConfig.executable!).path).toLowerCase();
1087+
let basename = path.posix.basename((await this.pathService.fileURI(shellLaunchConfig.executable!)).path).toLowerCase();
10881088
// If we don't have a cwd, then the terminal uses the home dir.
10891089
const userHome = await this.pathService.userHome();
10901090
if (basename === 'cmd.exe' && ((options.cwd && isUNC(options.cwd)) || (!options.cwd && isUNC(userHome.fsPath)))) {

0 commit comments

Comments
 (0)