Open
Description
Type: Bug
- Create a file named
Bram's Hinged Cube v0.2.3.scad
- Drag and drop the file into the VS Code terminal.
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:
'/Users/lgarron/Downloads/Brams Hinged Cube v0.2.3.scad'
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
Item | Value |
---|---|
CPUs | Apple M1 Max (10 x 2400) |
GPU Status | 2d_canvas: enabled 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 |
Load (avg) | 13, 12, 11 |
Memory (System) | 64.00GB (11.15GB free) |
Process Argv | --disable-extensions --crash-reporter-id 88d577d0-2e7d-4290-872a-7cef906b73f7 |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31314491
996jf627:31283433
pythonrdcb7:31303018
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
pylancecolor:31314202
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004