mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Adding .git/SQUASH_MSG detection to commit message autofill
This commit is contained in:
@@ -866,9 +866,12 @@ export class Repository implements Disposable {
|
||||
|
||||
async getInputTemplate(): Promise<string> {
|
||||
const mergeMessage = await this.repository.getMergeMessage();
|
||||
const squashMessage = await this.repository.getSquashMessage();
|
||||
|
||||
if (mergeMessage) {
|
||||
return mergeMessage;
|
||||
} else if (squashMessage) {
|
||||
return squashMessage;
|
||||
}
|
||||
|
||||
return await this.repository.getCommitTemplate();
|
||||
|
||||
Reference in New Issue
Block a user