MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / holdsFocus

Method holdsFocus

src/mcp/tools.ts:7778–7778  ·  view source on GitHub ↗
(p: SectionPart)

Source from the content-addressed store, hash-verified

7776 const focus = focusLinesOf(clusters[idx]!);
7777 while (reshrunk.parts.length > 1 && sectionText(reshrunk.parts).length > room) {
7778 const holdsFocus = (p: SectionPart) => focus.some((l) => l >= p.range.start && l <= p.range.end);
7779 let drop = reshrunk.parts.length - 1;
7780 for (let k = reshrunk.parts.length - 1; k >= 0; k--) {
7781 if (!holdsFocus(reshrunk.parts[k]!)) { drop = k; break; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected