Skip to content

Commit

Permalink
Set active and focus new terminal on double click
Browse files Browse the repository at this point in the history
Fixes #122342
  • Loading branch information
Tyriar committed Apr 27, 2021
1 parent c50ab1e commit b9147d8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ export class TerminalTabsWidget extends WorkbenchObjectTree<ITerminalInstance>
}
});

this.onMouseDblClick(e => {
this.onMouseDblClick(async () => {
if (this.getFocus().length === 0) {
const instance = this._terminalService.createTerminal();
this.setSelection([instance]);
this.setFocus([instance]);
this._terminalService.setActiveInstance(instance);
await instance.focusWhenReady();
}
});

Expand Down

0 comments on commit b9147d8

Please sign in to comment.