Skip to content

feat(document-symbols): implement document symbol provider#18

Merged
ntoulasm merged 5 commits into
mainfrom
feat/document-symbols
Mar 4, 2026
Merged

feat(document-symbols): implement document symbol provider#18
ntoulasm merged 5 commits into
mainfrom
feat/document-symbols

Conversation

@ntoulasm

@ntoulasm ntoulasm commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Summary

This PR implements the Document Symbol Provider. This feature enables a hierarchical view of .jref files in the editor's outline view, breadcrumbs, and symbol search.

Key Changes

  1. Added the provider r in /providers/documentSymbols.ts that generates symbols for objects, arrays, and properties.
  2. Extracted common range creation logic into a createRange helper in utils.ts which is now used by both the document symbol and definition providers.
  3. Registered the documentSymbolProvider in the server capabilities and added the necessary connection handlers.
  4. Added unit tests to verify symbol extraction.

@ntoulasm ntoulasm self-assigned this Mar 4, 2026
@ntoulasm ntoulasm marked this pull request as draft March 4, 2026 16:11
@ntoulasm ntoulasm marked this pull request as ready for review March 4, 2026 16:30
@ntoulasm ntoulasm merged commit 442624f into main Mar 4, 2026
2 checks passed
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