-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add VS Code integration #1
Comments
The extension uses quick pick. Look at the VS Code library API in the docs for how to preview a message in the pane or command view, then ask user to accept or not override with own message. Also maybe look at the semantic commit extension which mixes typing your message with choosing chore, docs etc. I need to generate a commit message, maybe using git API is JS in the first emojicommit extension above or the shell to read the git status. And then give the user a choice to accept (y/n or just prepopulate a single file) or override with own message. Then commit with terminal as commit using the output message (it doesn't matter whether manual or auto generated) |
I don't think this is one I used but it is related https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits UPDATE: Here it is https://marketplace.visualstudio.com/items?itemName=nitayneeman.git-semantic-commit |
Note from my testing that VS Code does actually respect the But note that VS Code with this hook means just overwrites the message based on your input messange and hook logic. You don't get to confirm and you only see what was written when you check the log. Also note that this flow does not actually use what you enter in the commit box - VS Code does not write to the Options are:
|
Also extension templates are easy enough to use but i need to see how to make my extension installed on VS Code locally |
Also I don't know why the helloworld test sample downloads VS Code - the semantic commit one has a similar test setup without the download. Also maybe the download is skipped on subsequent runs |
Done with tag v0.7.0 ! |
VS Code does not work with git hooks. So after getting the shell version working I can look at making a vs code extension based on this one
https://github.com/benjaminadk/emojigit
I could even use my existing command as using the confirmation flow there is a terminal git commit command, but one gets there after using the extension UI. Also the confirmation in the terminal can be toggled. Maybe it is just behind the scenes
The text was updated successfully, but these errors were encountered: