MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / debouncedRefresh

Function debouncedRefresh

src/editor/TaskCardNoteDecorations.ts:749–759  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

747 }
748 };
749 const debouncedRefresh = () => {
750 if (debounceTimer) window.clearTimeout(debounceTimer);
751 debounceTimer = window.setTimeout(() => {
752 const leaves = plugin.app.workspace.getLeavesOfType("markdown");
753 leaves.forEach((leaf) => {
754 scheduleInjection(leaf);
755 });
756 observeCanvasLeaves();
757 debouncedCanvasRefresh({ force: true });
758 }, 100);
759 };
760
761 // Inject widget when layout changes (file opened, switched, etc.)
762 const layoutChangeRef = plugin.app.workspace.on("layout-change", debouncedRefresh);

Callers

nothing calls this directly

Calls 5

observeCanvasLeavesFunction · 0.85
debouncedCanvasRefreshFunction · 0.85
scheduleInjectionFunction · 0.70
clearTimeoutMethod · 0.65
setTimeoutMethod · 0.65

Tested by

no test coverage detected