Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async function init(

await vscode.commands.executeCommand('setContext', 'github:initialized', true);

registerPostCommitCommandsProvider(reposManager, git);
registerPostCommitCommandsProvider(context, reposManager, git);

// Resume any pending checkout request stored before workspace reopened.
await resumePendingCheckout(reviewsManager, context, reposManager);
Expand Down Expand Up @@ -350,7 +350,7 @@ async function doRegisterBuiltinGitProvider(context: vscode.ExtensionContext, cr
return false;
}

function registerPostCommitCommandsProvider(reposManager: RepositoriesManager, git: GitApiImpl) {
function registerPostCommitCommandsProvider(context: vscode.ExtensionContext, reposManager: RepositoriesManager, git: GitApiImpl) {
const componentId = 'GitPostCommitCommands';
class Provider implements PostCommitCommandsProvider {

Expand Down Expand Up @@ -379,7 +379,7 @@ function registerPostCommitCommandsProvider(reposManager: RepositoriesManager, g
Logger.appendLine('Trying to register post commit commands.', 'GitPostCommitCommands');
if (hasGitHubRepos()) {
Logger.appendLine('GitHub remote(s) found, registering post commit commands.', componentId);
git.registerPostCommitCommandsProvider(new Provider());
context.subscriptions.push(git.registerPostCommitCommandsProvider(new Provider()));
return true;
}
return false;
Expand Down