Skip to content

Conversation

teogeb
Copy link
Owner

@teogeb teogeb commented Jul 4, 2025

This feature uses an experimental VS Code API. Do not merge this PR until VS Code officially supports the contribSourceControlHistoryItemMenu feature.

Feature

A context menu item has been added to the Graph view. It is now possible to select the target commit by right-clicking an item in the commit history.

Experimental API

The experimental API is required to define the scm/historyItem/context menu. No new JavaScript API methods are needed. Once scm/historyItem/context becomes one of the officially supported menus, we will no longer depend on the experimental API. See the currently supported menus here:

The following line in package.json is only for testing the experimental API, and should be removed before merging this PR:

"enabledApiProposals": ["contribSourceControlHistoryItemMenu"]

More about the experimental API in general: https://code.visualstudio.com/api/advanced-topics/using-proposed-api

},
{
"command": "git-fixup.amendStagedChangesToHistoryItem",
"title": "Amend Staged Changes"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance to tweak this to Amend Staged Changes ("Fixup")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants