Show avatar and actions in commit preview screen

Problem to solve

VS Code supports displaying additional information about a commit in the Timeline tab, when hovering the mouse over a commit. This tooltip can be augmented with GitLab-specific actions, and make authors easier to distinguish by providing an avatar.

Proposal

Add an implementation of SourceControlHistoryItemDetailsProvider, defined in the API of the Git plugin of VS Code. This requires increasing the minimum required version of VS Code to 1.98, which was released in January 2025. This can use progressive enhancement by checking if the function to register this new provider exists in the Git API object.

Further details

image

Commit from GitLab

image

Commit from GitHub, with custom avatar and link to website (bottom-right).

Edited by Lennard Sprong