-
Notifications
You must be signed in to change notification settings - Fork 273
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
Context dependent code completion #206
Comments
@gorkem , did you mean a I think YAML Language Server should do that for other features like hover, rename, diagnostics etc (like LSP4XML provides that). It's out of scope but *Participant will give the capability to communicate with other language server (ex: YAML language server will able to call Spring Tools LS, Quarkus LS in completion and it's the reason why I created the issue Handle communication between 2 language servers -> language client registry ( I would like so to convince guys like @tsmaeder with this idea :)) If you are interested with this topic, please see the investigation with LSP4XML with @martinlippert in the issue eclipse-lemminx/lemminx#596 |
@angelozerr A |
This is now available as of the 0.7.0 series releases. |
It should be possible to pass code completion options that are dependent on the context. 3rd party extensions should be able to pass the possible values for a field by checking the current context. For instance a kubernetes extension should be able to set the possible values for a field by checking the currently connected cluster.
One way to implement this is to modify the in-memory Schema that is currently active. I think this can be enough for most cases but the rare quick changing environments.
The text was updated successfully, but these errors were encountered: