Tasks with quoting escape does not escape “ and ” character when run under PS
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Type: Bug
Character “ (LEFT DOUBLE QUOTATION MARK) and ” (RIGHT DOUBLE QUOTATION MARK) are not escaped when running a task on Windows under PowerShell with quoting option escape.
A simple task like that can be used to test the issue
```json
{
"label": "test",
"type": "shell",
"command": "Write-Host",
"args": [{
"value": "${file}",
"quoting": "strong"
}]
}
```
running it with a file containing the aformentioned character.
From quick search on the codebase those two character should be appended to `charsToEscape` list here [src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts#L129](https://github.com/microsoft/vscode/blob/72986a28c3fa2a61ea138f90018bb56590208b05/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts#L129)
VS Code version: Code 1.132.0 (df53daabb18cd157bdb08c7f01c34df936cf12f4, 2026-08-04T15:30:20Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Contributor guide
Assessment
This issue has not been assessed yet.