MCPcopy Create free account
hub / github.com/Make-md/makemd / setViewState

Function setViewState

src/basics/flow/patchWorkspaceForFlow.ts:98–111  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

96 };
97 },
98 setViewState(old) {
99 return async function (viewState: ViewState, eState?: unknown) {
100 const result = await old.call(this, viewState, eState);
101 try {
102 if (this.flowEditors) {
103 for (const he of this.flowEditors) {
104 he.hide();
105 }
106 }
107 this.flowEditors = [];
108 } catch { }
109 return result;
110 };
111 },
112 setEphemeralState(old) {
113 return function (state: EphemeralState) {
114 old.call(this, state);

Callers

nothing calls this directly

Calls 1

hideMethod · 0.65

Tested by

no test coverage detected