You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the best case, this results in an immediate error from whatever command the user runs with the mangled file name.
In the worst case, this can refer to a different file and can have mild to catastrophic consequences depending on the assumptions of the user and/or the program they are running.
I've tested this with all extensions disabled on macOS, and it still occurs.
VS Code version: Code 1.100.2 (848b80a, 2025-05-14T21:47:40.416Z)
OS version: Darwin arm64 24.5.0
Modes:
I've recently also been experiencing issues where template values like file, relativeFile, and fileBasename are also incorrectly quoted when added to the terminal using workbench.action.terminal.sendSequence.
In that case the quotes are unescaped rather than omitted, which is not really any better form a correctness or safety perspective. (If anything, an odd number of unescaped quotes can break the interpretation of all following code, causing a large variety of potential shell syntax issues rather than just an incorrect file name.)
However, this makes me suspect that there is a common cause, and possibly a recent regression.
lgarron
changed the title
Terminal mangles files dropped into the terminal if they contain quotes.
Terminal mangles names of file dropped into the terminal if they contain quotes
May 27, 2025
Uh oh!
There was an error while loading. Please reload this page.
Type: Bug
Bram's Hinged Cube v0.2.3.scad
Expected: the file name that is added to the current command prompt is a valid quoted or escaped version of the dropped file.
Observed: the file name is quoted but quotes (any single or double quotes) are stripped. In my case, I get:
In the best case, this results in an immediate error from whatever command the user runs with the mangled file name.
In the worst case, this can refer to a different file and can have mild to catastrophic consequences depending on the assumptions of the user and/or the program they are running.
I've tested this with all extensions disabled on macOS, and it still occurs.
VS Code version: Code 1.100.2 (848b80a, 2025-05-14T21:47:40.416Z)
OS version: Darwin arm64 24.5.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: