refactor: Add getActiveViewType method to SplitViews class

This commit is contained in:
Mauro Balades 2024-08-06 12:10:32 +02:00
parent 856de195c8
commit f5f5f4b9c1

View file

@ -172,6 +172,13 @@ export class SplitViews extends SplitViewsBase {
return [];
}
getActiveViewType() {
if (!this.isActivated) {
return undefined;
}
return this.activeView.type;
}
/**
* @param {MockedExports.BrowserTab[]} tabs
* @param {SplitType} type