Git - Update CommitMessageProvider git extension API (#196170)

Update CommitMessageProvider git extension API
This commit is contained in:
Ladislau Szomoru
2023-10-21 18:15:39 +02:00
committed by GitHub
parent c05b49710b
commit b8c3c75f5d
3 changed files with 4 additions and 4 deletions

View File

@@ -2048,7 +2048,7 @@ export class Repository implements Disposable {
const token = this.generateCommitMessageCancellationTokenSource.token;
const provider = this.commitMessageProviderRegistry.commitMessageProvider;
const commitMessage = await provider.provideCommitMessage(diff, token);
const commitMessage = await provider.provideCommitMessage(new ApiRepository(this), diff, token);
if (commitMessage) {
this.inputBox.value = commitMessage;
}