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

Function changeLayout

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

Source from the content-addressed store, hash-verified

11
12
13 changeLayout(old) {
14 return async function (workspace: unknown) {
15 layoutChanging = true;
16 try {
17 // Don't consider hover popovers part of the workspace while it's changing
18 await old.call(this, workspace);
19 } finally {
20 layoutChanging = false;
21 }
22 };
23 },
24
25 getLeaf(old) {
26 //Patch get leaf to always return root leaf if leaf is a flow block

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected