You are viewing a single thread.
View all comments
28 points

It does warn you it will erase the file when you discard…

permalink
report
reply
14 points

Go read the actual thread. There was a bug someone found that files you have in there that aren’t even associated with git still get deleted. I’m not entirely convinced this was the poster’s fault.

permalink
report
parent
reply
9 points

It’s not a bug, it’s intentional. They consider changes to be any change since the last commit including in untracked files. They did update it to make this behavior a lot more obvious though.

permalink
report
parent
reply
7 points

This comment in particular does a great job of explaining the UX problem with this. https://github.com/microsoft/vscode/issues/32459#issuecomment-322160461

permalink
report
parent
reply
1 point

I did read the whole thread. I also referenced the resolution further down the comment thread.

They’ve adjusted the error message to be abundantly clear after the fact.

permalink
report
parent
reply
12 points

Warns you that changes will be discarded…not quite the same words

permalink
report
parent
reply
-4 points
*

I just tried right now to get the exact message.

Are you sure you want to DELETE foo?
This is IRREVERSIBLE!
This file will be FOREVER LOST if you proceed.

The confirmation button even says Delete File

User error.

permalink
report
parent
reply
13 points

This issue was from 2017

permalink
report
parent
reply
-5 points

If you use git and understand that VSC’s source control stuff is just a thin wrapper around git, you should understand what “discard all changes” means

permalink
report
parent
reply
6 points
*

“discard” is not a git operation. Reset and restore are, but those weren’t the words used.

permalink
report
parent
reply
1 point

Broken stair apologism.

permalink
report
parent
reply
-3 points

Man who clicks confirmation for leopards to delete his work is angry and surprised when his work is deleted.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 2K

    Monthly active users

  • 861

    Posts

  • 14K

    Comments