Skip to content

Commit 5711fad

Browse files
committed
Fix task escaping for pwsh
Fixes microsoft#95261
1 parent 28a77d4 commit 5711fad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ export class TerminalTaskSystem implements ITaskSystem {
12841284
if (platform === Platform.Platform.Windows) {
12851285
if (basename === 'cmd' && commandQuoted && argQuoted) {
12861286
commandLine = '"' + commandLine + '"';
1287-
} else if (basename === 'powershell' && commandQuoted) {
1287+
} else if ((basename === 'powershell' || basename === 'pwsh') && commandQuoted) {
12881288
commandLine = '& ' + commandLine;
12891289
}
12901290
}

0 commit comments

Comments
 (0)