Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VSCode] Add a 'Generate Commit Message' icon button #2873

Closed
Sma1lboy opened this issue Aug 14, 2024 · 3 comments
Closed

[VSCode] Add a 'Generate Commit Message' icon button #2873

Sma1lboy opened this issue Aug 14, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Sma1lboy
Copy link
Collaborator

Using a command to perform this action might not be very intuitive.

image

Maybe adding a 'Generate Commit Message' icon in the Source Control section of VSCode to provide a better UI experience for users.

image

Please reply with a 👍 if you want this feature.

@Sma1lboy Sma1lboy added the enhancement New feature or request label Aug 14, 2024
@wsxiaoys
Copy link
Member

The last time we checked, it wasn't possible to build such a feature with VSCode (GitHub Copilot itself used a private API to achieve this).

However, it's good to keep track of this in case the situation changes in the future (or has already changed).

@Sma1lboy Sma1lboy changed the title [VSCODE] Add a 'Generate Commit Message' icon button [VSCode] Add a 'Generate Commit Message' icon button Aug 14, 2024
@Sma1lboy
Copy link
Collaborator Author

Sma1lboy commented Aug 14, 2024

I'm trying to approach this, but it seems there is no API to get the current repository directly. The only way to achieve this is by creating a new SourceControl instance ourselves. I would like to add a trick icon: when there is only one repository, it will work perfectly, but if there are multiple repositories, we will have to choose the repository for which we want to auto-generate commits.

@wsxiaoys
Copy link
Member

related: microsoft/vscode#195474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants