Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/git/src/repository.ts')
-rw-r--r--extensions/git/src/repository.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/git/src/repository.ts b/extensions/git/src/repository.ts
index eb0de19bcf6..7c3ba92f792 100644
--- a/extensions/git/src/repository.ts
+++ b/extensions/git/src/repository.ts
@@ -22,6 +22,7 @@ import { IPushErrorHandlerRegistry } from './pushError';
import { ApiRepository } from './api/api1';
import { IRemoteSourcePublisherRegistry } from './remotePublisher';
import { ActionButtonCommand } from './actionButton';
+import { IPostCommitCommandsProviderRegistry } from './postCommitCommands';
const timeout = (millis: number) => new Promise(c => setTimeout(c, millis));
@@ -876,6 +877,7 @@ export class Repository implements Disposable {
private readonly repository: BaseRepository,
private pushErrorHandlerRegistry: IPushErrorHandlerRegistry,
remoteSourcePublisherRegistry: IRemoteSourcePublisherRegistry,
+ postCommitCommandsProviderRegistry: IPostCommitCommandsProviderRegistry,
globalState: Memento,
outputChannelLogger: OutputChannelLogger,
private telemetryReporter: TelemetryReporter
@@ -997,7 +999,7 @@ export class Repository implements Disposable {
statusBar.onDidChange(() => this._sourceControl.statusBarCommands = statusBar.commands, null, this.disposables);
this._sourceControl.statusBarCommands = statusBar.commands;
- const actionButton = new ActionButtonCommand(this);
+ const actionButton = new ActionButtonCommand(this, postCommitCommandsProviderRegistry);
this.disposables.push(actionButton);
actionButton.onDidChange(() => this._sourceControl.actionButton = actionButton.button);
this._sourceControl.actionButton = actionButton.button;