Skip to content

Commit 41dd4f7

Browse files
Mike Niklesakosyakov
Mike Nikles
authored andcommitted
Start the welcome walkthrough automatically.
1 parent e8d2544 commit 41dd4f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

extensions/gitpod-web/src/extension.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export async function activate(context: vscode.ExtensionContext) {
3939
});
4040
});
4141
registerWelcomeWalkthroughCommands(gitpodContext);
42+
startWelcomeWalkthrough();
4243

4344
const codeServer = new GitpodCodeServer();
4445
registerCLI(codeServer, gitpodContext);
@@ -763,6 +764,12 @@ export function registerWelcomeWalkthroughCommands(context: GitpodExtensionConte
763764
}));
764765
}
765766

767+
export function startWelcomeWalkthrough() {
768+
if (vscode.window.visibleTextEditors.length === 0) {
769+
vscode.commands.executeCommand('workbench.action.openWalkthrough', 'gitpod.gitpod-web#gitpod-getstarted', false);
770+
}
771+
}
772+
766773
export function registerCLI(codeServer: GitpodCodeServer, context: GitpodExtensionContext): void {
767774
const ipcHookCli = context.ipcHookCli;
768775
if (context.ipcHookCli) {

0 commit comments

Comments
 (0)