MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getActiveTabModel

Function getActiveTabModel

frontend/app/store/tab-model.ts:72–78  ·  view source on GitHub ↗
(waveEnv?: TabModelEnv)

Source from the content-addressed store, hash-verified

70}
71
72export function getActiveTabModel(waveEnv?: TabModelEnv): TabModel | null {
73 const activeTabId = globalStore.get(activeTabIdAtom);
74 if (activeTabId == null) {
75 return null;
76 }
77 return getTabModelByTabId(activeTabId, waveEnv);
78}
79
80export const TabModelContext = createContext<TabModel | undefined>(undefined);
81

Callers 1

registerGlobalKeysFunction · 0.90

Calls 2

getTabModelByTabIdFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected