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

Function getRoot

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

Source from the content-addressed store, hash-verified

90 plugin.plugin.register(
91 around(WorkspaceLeaf.prototype, {
92 getRoot(old) {
93 return function () {
94 const top = old.call(this);
95 return top.getRoot === this.getRoot ? top : top.getRoot();
96 };
97 },
98 setViewState(old) {
99 return async function (viewState: ViewState, eState?: unknown) {
100 const result = await old.call(this, viewState, eState);

Callers

nothing calls this directly

Calls 1

getRootMethod · 0.45

Tested by

no test coverage detected