mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-12 01:28:01 +01:00
@@ -225,7 +225,10 @@ export class SwitchTerminalInstanceAction extends Action {
|
||||
}
|
||||
|
||||
public run(item?: string): TPromise<any> {
|
||||
let selectedTerminalIndex = parseInt(item.split(':')[0], 10) - 1;
|
||||
if (!item) {
|
||||
return TPromise.as(null);
|
||||
}
|
||||
const selectedTerminalIndex = parseInt(item.split(':')[0], 10) - 1;
|
||||
this.terminalService.setActiveInstanceByIndex(selectedTerminalIndex);
|
||||
return this.terminalService.showPanel(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user