Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree-Sitter Tagging #18

Open
AnHeuermann opened this issue Feb 13, 2024 · 0 comments
Open

Tree-Sitter Tagging #18

AnHeuermann opened this issue Feb 13, 2024 · 0 comments
Labels
LS - Server Language Server - Server capability

Comments

@AnHeuermann
Copy link
Member

Tree-Sitter has a Code Navigation Systems used for tagging.

Maybe it's better to use that feature instead of doing something similar in getAllDeclarationsInTree. That way the language server is less depending on the language and doesn't need to know specifics of the tree grammar itself.

For example the server can test for the generic @definition.function instead of the very specific node name function_definition.

To test this https://github.com/OpenModelica/tree-sitter-modelica needs to implement this feature, see OpenModelica/tree-sitter-modelica#15.

@AnHeuermann AnHeuermann added the LS - Server Language Server - Server capability label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LS - Server Language Server - Server capability
Projects
None yet
Development

No branches or pull requests

1 participant