microsoft / microsoft/vscode

Git: Always shows the same tag when multiple tags point to the same commit

Open
#324,685 0 comments 0 reactions 1 assignee Claimed by @lszomoru View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

**Describe the bug**
When checking out a tag that corresponds to a commit with multiple tags attached, VS Code consistently shows only one fixed tag (e.g., the lexicographically first or the newest) in the status bar or source control panel, even if a different tag was explicitly checked out.

**Steps to reproduce**
1. Create a commit and tag it with multiple tags (e.g., `v1.0.0` and `latest`).
2. Check out one of the tags (e.g., `git checkout v1.0.0`).
3. Observe the tag displayed in VS Code's Git integration.

**Expected behavior**
VS Code should display the exact tag that was checked out.

**Actual behavior**
It always displays the same tag (e.g., `latest`) regardless of which tag was used for checkout.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.