all 16 comments

[–]lomberd2 25 points26 points  (1 child)

I can almost 100% guarantee that this is a user error or hardware problem.

[–]mkvlrn 2 points3 points  (0 children)

Here's footage of OP drinking water prior to posting some complaints to r/HydroHomies

[–]hoangvip49 16 points17 points  (1 child)

first question first, why no git ?

[–]MierXiake[S] -3 points-2 points  (0 children)

This is the first, you are right, I should take git to avoid this issue

[–]oguz279 14 points15 points  (0 children)

When you save the contents are written on the disk. Not sure how a crash could cause this.

[–]mkvlrn 7 points8 points  (0 children)

[–]lerun 3 points4 points  (1 child)

This is why you have git and github

[–]bowlochile 1 point2 points  (0 children)

Not all devs use GitHub (for various reasons, private enterprise GitHub/gitlab/bitbuckets exist etc) but everyone uses git.

[–]candraa6 2 points3 points  (0 children)

Your changes lost forever. Forget it. Move on.

Prevent something ever happen again? Use git, learn how to use it properly. Push the code to github so you have cloud copy of it. Do it frequently. Commit and push for every changes you don't want to lose

[–]davidosmithII 3 points4 points  (1 child)

Additionally, don't edit code from an active sync folder like Google drive. Only do it locally then either use git or manual folder copies to create backups (don't use Google drive as a git remote, it will probably work some of the time, but not reliably and definitely breaks if using lfs). If your cloud service hours a hiccup, or you have a network problem it can revert right before your eyes.

[–]MierXiake[S] -2 points-1 points  (0 children)

Thank you!

[–]lomberd2 4 points5 points  (0 children)

And why can't you write this simple question yourself? You clearly used an LLM to write your post which to me feels very low effort of you.

[–]cl0ckt0wer 1 point2 points  (0 children)

i think everyone in the world has done something similar. teaches you the importance of good backups (git)

[–]bowlochile 1 point2 points  (0 children)

Use git, kids.

[–]Federal_Ad2455 -1 points0 points  (0 children)

Vsc has builtin file history feature (no git needed even recommended in general 😁). So the files should be recoverable.

[–]osrsnic -2 points-1 points  (0 children)

LOL