-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Git commit comment field should pre-populate with git-commit template #74222
Comments
This is implemented. Are you sure you have your git commit template correctly configured? |
I thought it was already implemented. It's not working correctly in my VSCode environment.
From the VSCode terminal:
|
Hm... this seems to work for me. Can you try disabling other extensions? |
Hm... Can you try on another machine? |
Possibly related to #71550 ? |
@ChrisWeiss Yeah the template should appear... not really sure what is happening there. 🤔 |
I'm checking this. |
@ChrisWeiss, #71550 turned out to be a user error. Can you triple check? |
@ChrisWeiss just trying something out: vscode removes all lines that are commented out before populating the textbox, which is quite different than viewing the template in vim, for example. Does your template contain any non commented out lines? (@joaomoreno correct me if this is not the intended behavior. |
Ah! That's the issue! My template is all commented lines providing content guidance. |
Yeah we take those out, since everything in the input box is taken literally, so the comments would be a part of the commit message. I'm merging this together with #30562 |
If empty, the text field for a Git commit message should pre-load the appropriate git-commit template (as specified in the local or global .gitconfig).
The text was updated successfully, but these errors were encountered: