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

Method constructor

frontend/app/store/focusManager.ts:20–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 blockFocusAtom: Atom<string | null>;
19
20 private constructor() {
21 this.blockFocusAtom = atom((get) => {
22 if (get(this.focusType) == "waveai") {
23 return null;
24 }
25 const layoutModel = getLayoutModelForStaticTab();
26 const lnode = get(layoutModel.focusedNode);
27 return lnode?.data?.blockId;
28 });
29 }
30
31 static getInstance(): FocusManager {
32 if (!FocusManager.instance) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected