microsoft / microsoft/vscode

[Source Control] Feature Request: Identify commit hashes in commit descriptions in commit hover tips and make them link to the referenced commit

Open
#330,402 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

Currently, the commit hover tips do not identify commit hashes present in commit messages. This does not work with short commit IDs and neither with the full IDs:

Screenshot showing it's not working with a full commit ID

Screenshot showing it's not working with a short commit ID

I propose identifying these as commit hashes and rendering them as links that show the commit changes in VS Code. The feature of showing a commit's changes in VS Code already exists and can be seen in the "Open Commit" button at the bottom left corner of the hover tip.

## Why?

1. People are already familiar with this feature as it works on GitHub. The screenshot below shows one of the example commits when viewed on GitHub.

Screenshot showing it works on GitHub

2. This already works for GitHub issues numbers, so users would expect it to work for commit hashes as well. Screenshot showing it working for GitHub issue numbers:

Screenshot showing it works for GitHub issue numbers

3. Code review and long, descriptive commit messages are commonplace, and even more so in the age of GenAI. This feature will allow someone reading a commit message in the hover tip to easily check the changes of other commits that are referenced in the message.

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.