Skip to content

Conversation

istathar
Copy link
Member

@istathar istathar commented Oct 3, 2025

Index procedure declarations as "symbols" in the language server, making them available for document and project-wide symbol searches.

Among other things this involved a bit of cleanup in the initialization code path, and exposing the textDocument/documentSymbol and workspace/symbol capabilities.

To facilitate project-wide symbol search by a user, we add a cache and populate it with symbols from all Technique files in the local project. The ignore crate is used so that files ignored by e.g. .gitignore are omitted when searching.

Procedure declarations are sent as SymbolKind::CONSTRUCTOR, matching the context used in syntax highlighting.

@istathar istathar self-assigned this Oct 3, 2025
@istathar istathar merged commit 31929fd into technique-lang:main Oct 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant