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

Function scheduleInjection

src/editor/TaskCardNoteDecorations.ts:704–706  ·  view source on GitHub ↗
(leaf: WorkspaceLeaf)

Source from the content-addressed store, hash-verified

702 const observedCanvasContainers = new WeakSet<HTMLElement>();
703 const scheduler = new ReadingModeInjectionScheduler();
704 const scheduleInjection = (leaf: WorkspaceLeaf) => {
705 scheduler.schedule(leaf, (context) => injectReadingModeWidget(leaf, plugin, context));
706 };
707
708 // Debounce to prevent excessive re-renders
709 let debounceTimer: number | null = null;

Callers 2

debouncedRefreshFunction · 0.70
setupReadingModeHandlersFunction · 0.70

Calls 2

scheduleMethod · 0.80
injectReadingModeWidgetFunction · 0.70

Tested by

no test coverage detected