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

Unsaved content will be lost after replacing the filename with the “same” one #56384

Closed
zamhown opened this issue Aug 14, 2018 · 3 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@zamhown
Copy link

zamhown commented Aug 14, 2018

  • VSCode Version: 1.27.0-insider
  • OS Version: Windows 10.0.17713.1002

Steps to Reproduce:

  1. Open a folder in the sidebar.
  2. Create a file named "test.txt".
  3. Modify the content of the document to "a", and save it.
  4. Modify the content of the document to "b", but don't save it.
  5. Modify the filename to "Test.txt". Oooops! the unsaved content is lost.
  6. There is also a different way to reproduce: modify the filename to a different one, and then change it back to "test.txt". The unsaved content will be lost too.

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Aug 14, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@bpasero bpasero self-assigned this Aug 15, 2018
@bpasero bpasero added the bug Issue identified by VS Code Team member as probable bug label Aug 15, 2018
@bpasero bpasero added this to the August 2018 milestone Aug 15, 2018
@bpasero
Copy link
Member

bpasero commented Aug 15, 2018

@zamhown good catch

@jdthoen
Copy link

jdthoen commented Aug 15, 2018

Was just about to submit the same thing.

@dbaeumer dbaeumer added verified Verification succeeded bug Issue identified by VS Code Team member as probable bug and removed bug Issue identified by VS Code Team member as probable bug labels Aug 30, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 30, 2018
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