File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,9 @@ export class TerminalGroupService extends Disposable implements ITerminalGroupSe
179
179
if ( pane && ! pane . isVisible ( ) ) {
180
180
await this . _viewsService . openView ( TERMINAL_VIEW_ID , focus ) ;
181
181
}
182
- await instance . focusWhenReady ( true ) ;
182
+ // Do not await the focus as setVisible must be called immediately to ensure
183
+ // something else didn't steal focus
184
+ instance . focusWhenReady ( true ) ;
183
185
// HACK: as a workaround for https://github.com/microsoft/vscode/issues/134692,
184
186
// this will trigger a forced refresh of the viewport to sync the viewport and scroll bar.
185
187
// This can likely be removed after https://github.com/xtermjs/xterm.js/issues/291 is
You can’t perform that action at this time.
0 commit comments