mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Add active tab test
This commit is contained in:
@@ -76,8 +76,11 @@ export class ExtHostEditorTabs implements IExtHostEditorTabs {
|
||||
isActive: dto.isActive
|
||||
});
|
||||
});
|
||||
const oldActiveTab = this._activeTab;
|
||||
this._activeTab = activeIndex === -1 ? undefined : this._tabs[activeIndex];
|
||||
this._onDidChangeActiveTab.fire(this._activeTab);
|
||||
if (this._activeTab !== oldActiveTab) {
|
||||
this._onDidChangeActiveTab.fire(this._activeTab);
|
||||
}
|
||||
this._onDidChangeTabs.fire(this._tabs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user