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

File status shows "Deleted" even after file is restored #179031

Open
TheophileMot opened this issue Apr 3, 2023 · 2 comments · May be fixed by #181815
Open

File status shows "Deleted" even after file is restored #179031

TheophileMot opened this issue Apr 3, 2023 · 2 comments · May be fixed by #181815
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug git GIT issues
Milestone

Comments

@TheophileMot
Copy link

Type: Bug

When a file is deleted and then restored with git, the tab name displays the incorrect status.

To reproduce:

  1. Delete some file file.xyz.
  2. In the git sidebar, click on the file. It will open with a tab called file.xyz (Deleted).
  3. Discard the change, i.e., restore the file.

The tab still reads file.xyz (Deleted) even though the file is not deleted.

VS Code version: Code 1.73.1 (6261075, 2022-11-09T02:22:48.959Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: No

@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.77.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@TheophileMot
Copy link
Author

The behaviour is the same on v1.77.0.

@lszomoru lszomoru added bug Issue identified by VS Code Team member as probable bug git GIT issues labels Apr 13, 2023
@lszomoru lszomoru added this to the On Deck milestone Apr 13, 2023
yshaojun added a commit to yshaojun/vscode that referenced this issue May 8, 2023
@yshaojun yshaojun linked a pull request May 8, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug git GIT issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants