Skip to content

Filter contract symbols from CodeLens - #15

Merged
Perdolique merged 1 commit into
masterfrom
codex/filter-contract-symbols
Aug 11, 2026
Merged

Filter contract symbols from CodeLens#15
Perdolique merged 1 commit into
masterfrom
codex/filter-contract-symbols

Conversation

@Perdolique

@Perdolique Perdolique commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Summary

Keeps Zero Reference focused on symbols that static analysis can judge without pretending runtime contracts are dead code 🐛🔍 The classifier now uses document-symbol hierarchy while preserving useful class and interface member hints 😎👍

  • 🐛 Ignore top-level default export symbols and properties outside class or interface members
  • 🧭 Carry parent symbol kinds through iterative document-symbol traversal while still visiting descendants of excluded parents
  • ✅ Cover Hono-like binding and JSON response keys while proving unused class properties still receive CodeLens hints
  • 📚 Document conservative matching behavior

Motivation

Object payload keys, inline type bindings, and default exports can be consumed by frameworks or external clients without appearing in the VS Code static reference graph. Reporting them as zero-reference symbols creates misleading cleanup hints, while class and interface members remain useful candidates 🎯

- 🐛 Ignore default exports and properties outside class or interface members
- ✅ Cover Hono-like contract keys while preserving class property lenses
- 📚 Document conservative symbol matching
@Perdolique Perdolique self-assigned this Aug 11, 2026
@Perdolique
Perdolique marked this pull request as ready for review August 11, 2026 12:23
@Perdolique
Perdolique merged commit 9bd1cbd into master Aug 11, 2026
3 checks passed
@Perdolique
Perdolique deleted the codex/filter-contract-symbols branch August 11, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant