microsoft / vscode

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

LOST ALL MY CODE #210275

Closed yjeddoub closed 4 months ago

yjeddoub commented 5 months ago

Type: Bug

I've lost a long code (hours of work), because of the workspace BUT the was file saved from a long time ago. I don't know why i've lost all modifications after 31/03/2024 PLEASE HELP ME !!

VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:41:02.734Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz (4 x 2592)| |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| |Load (avg)|undefined| |Memory (System)|7.79GB (0.65GB free)| |Process Argv|--crash-reporter-id ee4e8043-0e3b-4cd7-99e5-96d767dfb310| |Screen Reader|no| |VM|0%|
Extensions (27) Extension|Author (truncated)|Version ---|---|--- arepl|alm|2.0.5 vscode-django|bat|1.15.0 languagetool-linter|dav|0.21.3 python-environment-manager|don|1.2.4 python-extension-pack|don|1.7.0 gitlens|eam|14.9.0 pip-packages|etm|0.4.3 remotehub|Git|0.62.0 vscode-pull-request-github|Git|0.86.1 vsc-python-indent|Kev|1.18.0 rainbow-csv|mec|3.11.0 debugpy|ms-|2024.4.0 python|ms-|2024.4.1 vscode-pylance|ms-|2024.4.1 jupyter|ms-|2024.4.2024041101 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 azure-repos|ms-|0.38.0 remote-repositories|ms-|0.40.0 autodocstring|njp|0.6.1 r-debugger|RDe|0.5.4 r|REd|2.8.2 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 jinja|who|0.0.8
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 gd77d436:30999572 jg8ic977:31013176 ```
### Tasks
### Tasks
RedCMD commented 5 months ago

you might be able to look at the TIMELINE section image

yjeddoub commented 5 months ago

I've looked at it, i only have modifications till 31/03

bpasero commented 5 months ago

Do you have steps that reproduce the issue, otherwise I am not sure what we can do here?

yjeddoub commented 5 months ago

I usually work on my file with the 'Auto save' option enabled, which has been active for quite some time. I've been working without saving for over 2 weeks now. I close the window normally and find all the modifications I've made. Last Friday, I accidentally opened VS Code, I didn't even want to work on it, and when I tried to close it, for the first time, it asked me if I wanted to save the modifications, even though I hadn't made any. Thinking that I might have accidentally typed something, I clicked on 'Don't save.' However, when I reopened the file after an hour, I realized that only a very old version of the file was available (the version from 03/31).

RedCMD commented 5 months ago

that's not good there is a history folder that saves the timeline in the vscode files but I assume it's already been purged

you could try the Windows File Recovery app but I doubt there's anything left for it to pickup

bpasero commented 5 months ago

I am sorry that you lost file changes but without some clear steps how to reproduce to understand how this happened, I will have to close this issue. It sounds to me that auto save turned off for some reason and you did not notice?

VSCodeTriageBot commented 4 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!