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

After copying and pasting a file, it looks like the copy is open in the editor, when actually the original is open in the editor #121872

Closed
jedwards1211 opened this issue Apr 21, 2021 · 2 comments

Comments

@jedwards1211
Copy link
Contributor

  • VS Code Version: 1.55.2
  • OS Version: Darwin x64 20.3.0

Steps to Reproduce:

  1. Select a file in the file explorer
  2. Copy and paste with Ctrl-C/Ctrl-V or ⌘-C/⌘-V
  3. Now the only file highlighted in the file explorer is the copy, but the original is open in the editor.
  4. (Optionally) hit enter to rename the copy, type in a new name, and hit enter to commit the rename. After this the situation is the same as in step 3.

It always looks 99% like the copy is now open in the editor and I end up editing and accidentally saving changes to the original, when I meant to edit the copy. Then I have to swap the contents of the two files.

@vscodebot
Copy link

vscodebot bot commented Apr 21, 2021

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

@jedwards1211
Copy link
Contributor Author

dupe of #120882, vscodebot is better at finding dupes than a GitHub search

@github-actions github-actions bot locked and limited conversation to collaborators Jun 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant