mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
19fc8da3be
commit
47fac2bac6
|
@ -484,12 +484,13 @@ export function registerTerminalActions() {
|
|||
}
|
||||
async run(accessor: ServicesAccessor) {
|
||||
const terminalService = accessor.get(ITerminalService);
|
||||
const terminalGroupService = accessor.get(ITerminalGroupService);
|
||||
const instance = terminalService.activeInstance || await terminalService.createTerminal({ target: TerminalLocation.TerminalView });
|
||||
if (!instance) {
|
||||
return;
|
||||
}
|
||||
terminalService.setActiveInstance(instance);
|
||||
return accessor.get(ITerminalGroupService).showPanel(true);
|
||||
return terminalGroupService.showPanel(true);
|
||||
}
|
||||
});
|
||||
registerAction2(class extends Action2 {
|
||||
|
|
Loading…
Reference in a new issue