Repository: vscode
Issue: Deleting itself
Labels: info-needed


Type: <b>Bug</b>

I just downloaded the latest available version for Apple M1 chipset (and the same happened to darwin and universal versions as well) and after extracting and setting the app inside Applications, I can open it and work, but if I try to update itself and restart it, it deletes itself from the folder and not even goes to trash. Then I need to redo all it again, even updating the extensions in case there's some to.

VS Code version: Code 1.89.0 (b58957e67ee1e712cebf466b995adf4c5307b2bd, 2024-05-01T02:10:13.496Z)
OS version: Darwin arm64 23.5.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M1 (8 x 24)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|3, 4, 3|
|Memory (System)|8.00GB (0.07GB free)|
|Process Argv|--crash-reporter-id ee7ee5ef-637e-421e-89f8-8e1cf4110bd8|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (65)</summary>

Extension|Author (truncated)|Version
---|---|---
simple-react-snippets|bur|1.2.8
npm-intellisense|chr|1.4.5
dart-code|Dar|3.90.0
flutter|Dar|3.90.0
vscode-eslint|dba|2.4.4
es7-react-js-snippets|dsz|4.4.3
gitlens|eam|15.1.0
vsc-material-theme|Equ|34.3.1
vsc-material-theme-icons|equ|3.6.0
prettier-vscode|esb|10.4.0
font-switcher|eva|4.1.0
html-slim-scss-css-class-completion|gen|1.7.8
bootstrap5-snippets|Han|1.2.5
rest-client|hum|0.25.1
vscode-react-typescript|inf|1.3.1
kite|kit|0.147.0
ligatures-limited|ksh|1.4.0
eml|lei|0.4.0
google-fonts|lio|0.0.1
theme-monokai-pro-vscode|mon|1.3.2
vscode-autoprefixer|mrm|3.0.1
csdevkit|ms-|1.6.8
csharp|ms-|2.31.19
dotnet-maui|ms-|0.12.42
vscode-dotnet-runtime|ms-|2.0.5
vscodeintellicode-csharp|ms-|2.1.11
debugpy|ms-|2024.6.0
isort|ms-|2023.10.1
python|ms-|2024.8.0
vscode-pylance|ms-|2024.6.1
jupyter|ms-|2024.4.0
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.18
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
remote-containers|ms-|0.369.0
remote-ssh|ms-|0.110.1
remote-ssh-edit|ms-|0.86.0
vscode-remote-extensionpack|ms-|0.25.0
cpptools|ms-|1.20.5
remote-explorer|ms-|0.4.3
remote-server|ms-|1.5.1
vetur|oct|0.37.3
vscode-jest|Ort|6.2.5
java|red|1.31.0
LiveServer|rit|5.7.9
vs-code-prettier-eslint|rve|6.0.0
markdown-preview-enhanced|shd|0.8.13
autoimport|ste|1.5.4
tabnine-vscode|Tab|3.106.0
open-in-browser|tec|2.0.0
vscode-fontawesome-gallery|tom|0.0.7
pdf|tom|1.2.2
vscode-w3cvalidation|Umo|2.9.1
intellicode-api-usage-examples|Vis|0.2.8
vscodeintellicode|Vis|1.3.1
vscode-java-debug|vsc|0.57.0
vscode-java-dependency|vsc|0.23.6
vscode-java-pack|vsc|0.27.0
vscode-java-test|vsc|0.41.1
vscode-maven|vsc|0.44.0
vscode-icons|vsc|12.8.0
vscode-todo-highlight|way|1.0.5
vscode-import-cost|wix|3.3.0
JavaScriptSnippets|xab|1.8.0

(6 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelc:31048052
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
pythonprt:31056678
dwnewjupytercf:31046870
26j00206:31048877

```

</details>

<!-- generated by issue reporter -->