Skip to content

Commit fda3ed3

Browse files
committed
Fix terminalFocus context key after select all from cmd palette
Fixes microsoft#28679
1 parent 732824c commit fda3ed3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ export class TerminalInstance implements ITerminalInstance {
342342
}
343343

344344
public selectAll(): void {
345+
// Focus here to ensure the terminal context key is set
346+
this._xterm.focus();
345347
this._xterm.selectAll();
346348
}
347349

0 commit comments

Comments
 (0)