Skip to content

Commit c480d28

Browse files
jeanp413mustard-mh
authored andcommitted
1 parent b706f19 commit c480d28

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

extensions/gitpod-web/src/extension.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ export async function activate(context: vscode.ExtensionContext) {
3535
registerAuth(gitpodContext);
3636
registerPorts(gitpodContext);
3737
registerTasks(gitpodContext).then(() => {
38-
if (vscode.window.terminals.length === 0) {
39-
// Always show a terminal if no task terminals are created
40-
vscode.window.createTerminal();
41-
}
38+
setTimeout(() => {
39+
if (vscode.window.terminals.length === 0) {
40+
// Always show terminal if no task terminals are created
41+
vscode.commands.executeCommand('terminal.focus', { preserveFocus: true });
42+
}
43+
}, 0);
4244
});
4345

4446
registerIpcHookCli(gitpodContext);

0 commit comments

Comments
 (0)