You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result: you see the "(deleted from disk)" note in the tab. This is goodness.
If i make an edit to the file to dirty it, then click on the "x" then i get prompted to save, this is goodness.
However, if I don't make any changes the file then click on the "x" to close, I'm not prompted and all of that content in the file is gone. It feels like data loss. How bad would it be to prompt the user in this scenario? maybe the file was removed from disk accidentally...
The text was updated successfully, but these errors were encountered:
We decided against this to not confuse users that the buffer shown contains data typed by the user and then suddenly thinks he should save the file (which then puts it back to disk). We also do not want to restore such buffers as part of hot exit. I am closing this as wont fix, talk to me over beer if you want to talk more about it.
Testing: #23242
"workbench.editor.closeOnFileDelete": false
test.md
)Result: you see the "(deleted from disk)" note in the tab. This is goodness.
If i make an edit to the file to dirty it, then click on the "x" then i get prompted to save, this is goodness.
However, if I don't make any changes the file then click on the "x" to close, I'm not prompted and all of that content in the file is gone. It feels like data loss. How bad would it be to prompt the user in this scenario? maybe the file was removed from disk accidentally...
The text was updated successfully, but these errors were encountered: