mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
use helper
This commit is contained in:
parent
f89f293320
commit
3464868729
1 changed files with 1 additions and 5 deletions
|
@ -491,11 +491,7 @@ export function registerTerminalActions() {
|
|||
return;
|
||||
}
|
||||
c.service.setActiveInstance(instance);
|
||||
if (instance.target === TerminalLocation.Panel) {
|
||||
c.groupService.showPanel(true);
|
||||
} else {
|
||||
c.editorService.activeInstance?.focus();
|
||||
}
|
||||
c.service.focusActiveInstance();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue