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

Method isOpened

src/services/workbench/editorService.ts:260–266  ·  view source on GitHub ↗
(
        tabId: UniqueId,
        filterGroups?: IEditorGroup<any, any>[]
    )

Source from the content-addressed store, hash-verified

258 }
259
260 public isOpened(
261 tabId: UniqueId,
262 filterGroups?: IEditorGroup<any, any>[]
263 ): boolean {
264 const groups = filterGroups || this.state.groups || [];
265 return groups.some((group) => this.getTabById(tabId, group.id!));
266 }
267
268 public setDefaultActions(actions: IEditorActionsProps[]): void {
269 this.defaultActions = actions;

Callers 6

closeTabMethod · 0.95
closeOtherMethod · 0.95
closeToRightMethod · 0.95
closeToLeftMethod · 0.95
getGroupIdByTabMethod · 0.95
closeAllMethod · 0.95

Calls 1

getTabByIdMethod · 0.95

Tested by

no test coverage detected