MCPcopy
hub / github.com/callumalpass/tasknotes / getCodeMirrorEditor

Function getCodeMirrorEditor

src/bootstrap/pluginBootstrap.ts:69–75  ·  view source on GitHub ↗
(editor: unknown)

Source from the content-addressed store, hash-verified

67};
68
69function getCodeMirrorEditor(editor: unknown): unknown {
70 if (!editor || typeof editor !== "object") {
71 return undefined;
72 }
73
74 return (editor as unknown as EditorWithCodeMirror).cm ?? null;
75}
76
77export function registerTaskNotesIcon(): void {
78 addIcon(

Callers 1

initializeServicesLazilyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected