codegraph icon indicating copy to clipboard operation
codegraph copied to clipboard

Preserve selected source bodies in codegraph output

Open GaoSSR opened this issue 6 months ago • 0 comments

Summary

  • Return the selected symbol body from codegraph_node includeCode=true for container symbols instead of replacing classes/interfaces with member outlines
  • Trim long context code blocks from the middle so both the opening context and tail lines remain visible
  • Add regression coverage for container bodies and long code blocks with important tail content

Testing

  • npx vitest run __tests__/context.test.ts __tests__/symbol-lookup.test.ts
  • npm run build
  • git diff --check

GaoSSR avatar Jun 02 '26 18:06 GaoSSR