mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-19 22:59:48 +01:00
@@ -288,14 +288,15 @@ export class TerminalGroupService extends Disposable implements ITerminalGroupSe
|
||||
}
|
||||
|
||||
this.activeInstanceIndex = instanceLocation.instanceIndex;
|
||||
this.activeGroupIndex = instanceLocation.groupIndex;
|
||||
|
||||
if (this.activeGroupIndex !== instanceLocation.groupIndex) {
|
||||
this.activeGroupIndex = instanceLocation.groupIndex;
|
||||
this._onDidChangeActiveGroup.fire(this.activeGroup);
|
||||
}
|
||||
this.groups.forEach((g, i) => g.setVisible(i === instanceLocation.groupIndex));
|
||||
|
||||
instanceLocation.group.setActiveInstanceByIndex(this.activeInstanceIndex);
|
||||
this._onDidChangeActiveInstance.fire(newActiveInstance);
|
||||
}
|
||||
|
||||
setActiveGroupToNext() {
|
||||
|
||||
@@ -435,6 +435,7 @@ class SingleTerminalTabActionViewItem extends MenuEntryActionViewItem {
|
||||
this._register(this._terminalService.onInstancePrimaryStatusChanged(e => this.updateLabel(e)));
|
||||
this._register(_terminalGroupService.onDidChangeActiveInstance(() => this.updateLabel()));
|
||||
this._register(this._terminalService.onInstanceIconChanged(e => this.updateLabel(e)));
|
||||
this._register(this._terminalService.onInstanceColorChanged(e => this.updateLabel(e)));
|
||||
this._register(this._terminalService.onInstanceTitleChanged(e => {
|
||||
if (e === this._terminalGroupService.activeInstance) {
|
||||
this._action.tooltip = getSingleTabTooltip(e);
|
||||
|
||||
Reference in New Issue
Block a user