提交 8c753cda 编写于 作者: T t-amqi

Fix dangling active terminal on delete

上级 731ef39f
......@@ -95,6 +95,9 @@ export class QuickKillTerminalAction extends Action {
if (terminal) {
terminal.dispose();
}
if (this.terminalService.activeTerminalInstanceIndex !== terminalIndex) {
this.terminalService.setActiveInstanceByIndex(Math.min(terminalIndex, this.terminalService.terminalInstances.length - 1));
}
return TPromise.timeout(50).then(result => this.quickOpenService.show(TERMINAL_PICKER_PREFIX, null));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册