cqframework / cql-language-server

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

Autocompletion for model properties #33

Open JPercival opened 2 years ago

JPercival commented 2 years ago

As a CQL author, when writing CQL that references some Model, I want the editor to suggest a list of properties. For example,

     [Observation] O where O.   //suggest properties of Observation here
JPercival commented 2 years ago

In CQL the Model information is provided by a ModelInfo. The CQL compiler loads these via the ModelManager. You'd check to see if you were a context of accessing a Model's properties, then auto-populate a list based on the ModelInfo

JPercival commented 2 years ago

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