We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b706f19 commit c480d28Copy full SHA for c480d28
extensions/gitpod-web/src/extension.ts
@@ -35,10 +35,12 @@ export async function activate(context: vscode.ExtensionContext) {
35
registerAuth(gitpodContext);
36
registerPorts(gitpodContext);
37
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
- }
+ setTimeout(() => {
+ if (vscode.window.terminals.length === 0) {
+ // Always show terminal if no task terminals are created
+ vscode.commands.executeCommand('terminal.focus', { preserveFocus: true });
42
+ }
43
+ }, 0);
44
});
45
46
registerIpcHookCli(gitpodContext);
0 commit comments