microsoft / vscode

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

Unsaved files all lost after auto update #230463

Open GorunNova opened 1 day ago

GorunNova commented 1 day ago

Type: Bug

After the latest auto update, the file I write in VScode unsaved are all lost. The previous version does not have such problem. I have lost the work last month.

VS Code version: Code 1.94.0 (d78a74bcdfad14d5d3b1b782f87255d802b57511, 2024-10-02T13:08:12.626Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz (4 x 2295)| |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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|7.70GB (3.20GB free)| |Process Argv|--crash-reporter-id 2f60ae41-093e-4294-8130-38261f796536| |Screen Reader|no| |VM|0%|
Extensions (8) Extension|Author (truncated)|Version ---|---|--- debugpy|ms-|2024.10.0 python|ms-|2024.16.0 vscode-pylance|ms-|2024.9.2 jupyter|ms-|2024.9.1 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.19 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 724cj586:31013169 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 flightc:31134773 wkspc-onlycs-t:31132770 wkspc-ranged-t:31151552 cf971741:31144450 autoexpandse:31146404 iacca1:31150322 notype1cf:31151524 5fd0e150:31146321 ```
bpasero commented 1 day ago

Sorry to hear that, this should normally not happen with an update and we have tests in place that ensure unsaved files are restored between restarts. I wonder what could have happened in your case, can you share more details?

GorunNova commented 1 day ago

Two or three days before, the unsaved files(ipynb format) would appear again after reopenning with several seconds. But today, when I opened vscode, it shows an update. I turned to some unsaved files, they only showed blank even I reopened them three or more times.

Perhaps it is better to add a save reminder feature upon exiting, similar to other software.

bpasero commented 1 day ago

Well, we do have that if you configure files.hotExit to off. In that case you cannot quit VS Code without saving.

If you feel comfortable in sharing (mail is fine too), could you send me a zip of the logs. We have a command in the command palette to open the logs folder:

Image

GorunNova commented 1 day ago

Hello Mr. Pasero,

Attachment is the zip files.

At 2024-10-04 16:12:38, "Benjamin Pasero" @.***> wrote:

Well, we do have that if you configure files.hotExit to off. In that case you cannot quit VS Code without saving.

If you feel comfortable in sharing (mail is fine too), could you send me a zip of the logs. We have a command in the command palette to open the logs folder:

image.png (view on web)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>