Skip to content

Commit f8eb03a

Browse files
authored
🐛 do not need to dupe context (#18)
Signed-off-by: David Zager <[email protected]>
1 parent 8c76e8d commit f8eb03a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

vscode/src/VsCodeExtension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ export class VsCodeExtension {
4343
});
4444

4545
// Commands
46-
registerAllCommands(context, this.extensionContext, this.sidebar);
46+
registerAllCommands(context, this.sidebar);
4747
}
4848
}

vscode/src/commands.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ const commandsMap: (
8383

8484
export function registerAllCommands(
8585
context: vscode.ExtensionContext,
86-
extensionContext: vscode.ExtensionContext,
87-
sidebar: KonveyorGUIWebviewViewProvider,
86+
sidebar: KonveyorGUIWebviewViewProvider
8887
) {
8988
for (const [command, callback] of Object.entries(
90-
commandsMap(extensionContext, sidebar),
89+
commandsMap(context, sidebar)
9190
)) {
9291
context.subscriptions.push(
9392
vscode.commands.registerCommand(command, callback),

0 commit comments

Comments
 (0)