microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.13k stars 28.52k forks source link

Deleting a file in the Mac `CloudStorage` directory skips the Trash #177427

Closed garyking closed 1 year ago

garyking commented 1 year ago

Type: Bug

  1. Open a folder from the Mac ~/Library/CloudStorage/ directory in VSC. (This directory is used by Dropbox, and Google Drive.)
  2. Delete a file in this directory, within VSC.
  3. The file deletion will skip the Trash. Yet it shouldn't skip the Trash. It should instead appear in the Trash, after the file is deleted from within VSC.

If I create a symlink within ~/Library/CloudStorage/Dropbox to a directory outside of ~/Library/CloudStorage, then delete a file within that directory in VSC, then it goes to the Trash, as it should.

VS Code version: Code 1.76.2 (Universal) (ee2b180d582a7f601fa6ecfdad8d9fd269ab1884, 2023-03-14T17:54:09.061Z) OS version: Darwin arm64 22.3.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|3, 3, 3| |Memory (System)|16.00GB (0.97GB free)| |Process Argv|--crash-reporter-id 33166f13-0cd4-4333-aabf-41b2210e787b| |Screen Reader|no| |VM|0%|
Extensions (45) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.3.1 solargraph|cas|0.24.0 gitignore|cod|0.9.0 vscode-eslint|dba|2.4.0 gitlens|eam|13.4.0 EditorConfig|Edi|0.16.4 prettier-vscode|esb|9.10.4 auto-rename-tag|for|0.1.10 code-runner|for|0.12.0 html-slim-scss-css-class-completion|gen|1.7.8 todo-tree|Gru|0.0.224 RelativePath|jak|1.5.0 vscode-styled-components|jpo|1.7.0 center-editor-window|kai|2.3.0 dotenv|mik|1.0.1 goto-next-previous-member|mis|0.0.6 isort|ms-|2022.8.0 python|ms-|2023.4.1 vscode-pylance|ms-|2023.3.20 jupyter|ms-|2023.2.1200692131 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.7 vscode-jupyter-slideshow|ms-|0.1.5 live-server|ms-|0.4.7 vscode-js-profile-flame|ms-|1.0.5 vscode-react-native|msj|1.10.2 color-highlight|nau|2.5.0 vscode-jest|Ort|5.2.3 vscode-css-peek|pra|4.2.0 ruby|reb|0.28.1 vscode-statusbar-json-path|ric|2.0.0 wikitext|Row|3.7.0 vscode-fileutils|sle|3.10.0 rewrap|stk|1.16.3 tabnine-vscode|Tab|3.6.43 sort-lines|Tyr|1.9.1 es-quotes|vil|0.2.6 highlight-matching-tag|vin|0.11.0 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 quokka-vscode|Wal|1.0.528 vscode-ruby|win|0.28.0 markdown-all-in-one|yzh|3.5.0 vscode-open-in-github|ziy|1.3.6
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewvextcfv2:30681851 azure-dev_surveyone:30548225 pyindex848:30662994 nodejswelcome1:30587005 282f8724:30602487 pyind779:30671433 89544117:30613380 pythonsymbol12:30671437 showlangstatbar:30672706 vsccsb:30677849 pythonb192cf:30669361 functionswalk:30687959 pythonms35:30686772 ```
lramos15 commented 1 year ago

\duplicate https://github.com/microsoft/vscode/issues/174722