Adding a custom button to Source Control view in extension #487
-
I'm developing a VS Code extension that adds a button to the Source Control view.
I suspect there might be some missing code or a problem with the API integration. If anyone has experience with this or any suggestions, I would greatly appreciate your help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Not sure if it is possible. But in case it is you need to use the Menu contribution point https://code.visualstudio.com/api/references/contribution-points#contributes.menus Thus you need to contribute a command to one of the SCM menus. |
Beta Was this translation helpful? Give feedback.
-
Check the proposed APIs used by the Git extension- https://github.com/microsoft/vscode/blob/main/extensions/git/package.json#L12 https://github.com/microsoft/vscode/tree/main/src/vscode-dts |
Beta Was this translation helpful? Give feedback.
Not sure if it is possible. But in case it is you need to use the Menu contribution point https://code.visualstudio.com/api/references/contribution-points#contributes.menus
Thus you need to contribute a command to one of the SCM menus.