MCPcopy Create free account
hub / github.com/DTStack/molecule / getGroupIdByTab

Method getGroupIdByTab

src/services/workbench/editorService.ts:575–586  ·  view source on GitHub ↗
(tabId: UniqueId)

Source from the content-addressed store, hash-verified

573 }
574
575 public getGroupIdByTab(tabId: UniqueId) {
576 const { groups = [] } = this.state;
577 const isOpened = this.isOpened(tabId, groups);
578 if (isOpened) {
579 const targetGroup = groups.find((group) =>
580 this.getTabById(tabId, group.id!)
581 )!;
582 return targetGroup.id!;
583 } else {
584 return null;
585 }
586 }
587
588 public setActive(groupId: UniqueId, tabId: UniqueId) {
589 const { groups = [] } = this.state;

Callers

nothing calls this directly

Calls 2

isOpenedMethod · 0.95
getTabByIdMethod · 0.95

Tested by

no test coverage detected