提交 b1b4c5a3 编写于 作者: D Daniel Imms

Fix active terminal event when switching between split terminals

Fixes #128301
上级 a4efb441
......@@ -432,10 +432,8 @@ export class TerminalGroup extends Disposable implements ITerminalGroup {
const oldActiveInstance = this.activeInstance;
this._activeInstanceIndex = index;
if (force) {
if (oldActiveInstance !== this.activeInstance) {
this._onInstancesChanged.fire();
}
if (oldActiveInstance !== this.activeInstance || force) {
this._onInstancesChanged.fire();
this._onDidChangeActiveInstance.fire(this.activeInstance);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册