cqframework / cql-language-server

A CQL language server compatible with the Language Server Protocol
Apache License 2.0
2 stars 5 forks source link

Find All References / Go To Definition #42

Open JPercival opened 2 years ago

JPercival commented 2 years ago

As a user, I want to be able to right click on a definition / function / model in CQL and find all references to that element, and then also be able to go to the place where that's defined in the CQL code. Here's the relevant language server apis:

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_references

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_definition

To facilitate this, we could maintain an index of documents in the cql-language-server that would allow look-up of definitions and references.

JPercival commented 2 years ago

See also #22