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

Method getTabById

src/services/workbench/editorService.ts:306–315  ·  view source on GitHub ↗
(
        tabId: UniqueId,
        groupId: UniqueId
    )

Source from the content-addressed store, hash-verified

304 };
305
306 public getTabById<T>(
307 tabId: UniqueId,
308 groupId: UniqueId
309 ): IEditorTab<T> | undefined {
310 const group = this.getGroupById(groupId);
311 if (group) {
312 return group.data?.find(searchById(tabId));
313 }
314 return undefined;
315 }
316
317 public get editorInstance() {
318 return this.state.current?.editorInstance;

Callers 4

isOpenedMethod · 0.95
updateTabMethod · 0.95
getGroupIdByTabMethod · 0.95
setActiveMethod · 0.95

Calls 2

getGroupByIdMethod · 0.95
searchByIdFunction · 0.90

Tested by

no test coverage detected