From 00b4d11bdf872e5e9f145c45d43172de7b1d569d Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 2 Jun 2023 01:22:41 -0400 Subject: [PATCH] Avoids opening the walkthrough to the side --- src/commands/walkthroughs.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/commands/walkthroughs.ts b/src/commands/walkthroughs.ts index 1fc9c35..f5674e4 100644 --- a/src/commands/walkthroughs.ts +++ b/src/commands/walkthroughs.ts @@ -17,18 +17,6 @@ export class GetStartedCommand extends Command { walkthroughId = undefined; } - void openWalkthrough(extensionId, walkthroughId ?? 'gitlens.welcome'); - } -} - -@command() -export class OpenWalkthroughCommand extends Command { - constructor(private readonly container: Container) { - super(Commands.OpenWalkthrough); - } - - execute(walkthroughAndStep?: string) { - const [walkthroughId, stepId] = walkthroughAndStep?.split('|') ?? 'gitlens.welcome'; - void openWalkthrough(this.container.context.extension.id, walkthroughId, stepId); + void openWalkthrough(extensionId, walkthroughId ?? 'gitlens.welcome', undefined, false); } }