Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot save file "deleted from disk" #23349

Closed
alexdima opened this issue Mar 28, 2017 · 4 comments
Closed

Cannot save file "deleted from disk" #23349

alexdima opened this issue Mar 28, 2017 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@alexdima
Copy link
Member

Testing #23242

  • have "workbench.editor.closeOnFileDelete": false, "files.autoSave": "afterDelay"

  • open a file in the workbench

  • delete the file on disk outside vscode

  • the file remains in the tab, with the extra label "deleted from disk"

  • It is not clear how to restore the file. Ctrl+S does not restore the file. Doing an edit and pressing Ctrl+S seems to be the only way to restore it

@bpasero bpasero added this to the March 2017 milestone Mar 28, 2017
@bpasero bpasero added the bug Issue identified by VS Code Team member as probable bug label Mar 29, 2017
@bpasero
Copy link
Member

bpasero commented Mar 29, 2017

Using Ctrl+S (or an explicit File > Save) you can now bring back a file that is deleted.

@sandy081 sandy081 added the verified Verification succeeded label Mar 31, 2017
@adzenith
Copy link

adzenith commented Apr 4, 2017

I'm running

Version 1.11.0-insider
Commit 4076fec539a2bac23ae3ac8fc5c0d2c6f5bb0a1d
Date 2017-04-04T10:20:58.501Z

I can't seem to save a file that's been deleted from the disk. Ctrl+S and File > Save both appear to do nothing. Am I doing something wrong?

@bpasero
Copy link
Member

bpasero commented Apr 4, 2017

@adzenith repro steps? video?

@adzenith
Copy link

adzenith commented Apr 5, 2017

I can try it again tomorrow, but the steps were:

  1. Open a file
  2. rm that file from the terminal
  3. Press ctrl+s or go File > Save: The title still says (Deleted from disk) and the file doesn't show back up on disk.

This was on Ubuntu 14.04.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants