Skip to content

Commit 7da123f

Browse files
authored
Focus terminal before kicking of #new flow (#416)
1 parent 78acc29 commit 7da123f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/extension/tools/node/newWorkspace/newWorkspaceTool.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export class NewWorkspaceCreationResult extends PromptElement<NewWorkspaceElemen
122122
constructor(
123123
props: PromptElementProps<NewWorkspaceElementProps>,
124124
@IWorkspaceService private readonly workspaceService: IWorkspaceService,
125+
@IRunCommandExecutionService private readonly commandService: IRunCommandExecutionService,
125126
) {
126127
super(props);
127128
}
@@ -136,6 +137,9 @@ export class NewWorkspaceCreationResult extends PromptElement<NewWorkspaceElemen
136137
</TextChunk>;
137138
}
138139

140+
// For https://github.com/microsoft/vscode/issues/258252
141+
this.commandService.executeCommand('workbench.action.terminal.focus');
142+
139143
return <>
140144
<TextChunk>
141145
Create or update the file `.github/copilot-instructions.md` with the exact content shown below.<br />

0 commit comments

Comments
 (0)