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

Function resolveTaskLinkDisplayText

src/editor/taskLinkDisplayText.ts:91–102  ·  view source on GitHub ↗
(
	displayText: string | undefined,
	taskPath: string | undefined,
	linkPath?: string
)

Source from the content-addressed store, hash-verified

89}
90
91export function resolveTaskLinkDisplayText(
92 displayText: string | undefined,
93 taskPath: string | undefined,
94 linkPath?: string
95): string | undefined {
96 const normalizedDisplay = displayText?.trim();
97 if (!normalizedDisplay) return undefined;
98 if (isImplicitTaskLinkDisplayText(normalizedDisplay, taskPath, linkPath)) {
99 return undefined;
100 }
101 return normalizedDisplay;
102}

Callers 3

resolveDisplayTextMethod · 0.90
buildTaskLinkDecorationsFunction · 0.90
replaceWithTaskWidgetMethod · 0.90

Calls 1

Tested by

no test coverage detected