Skip to content

Query:- Yaml Support for language server #1041

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

Closed
arunvenmany-ibm opened this issue Mar 18, 2025 · 5 comments
Closed

Query:- Yaml Support for language server #1041

arunvenmany-ibm opened this issue Mar 18, 2025 · 5 comments

Comments

@arunvenmany-ibm
Copy link

arunvenmany-ibm commented Mar 18, 2025

Hi @angelozerr

As part of a new project, we need a language server for yaml with support for Code completion, hover, diagnostics, document link and code actions with clients for eclipse, intellij and vscode. We have some additional functionality as well, where we need to call some API’s and show some live completions for some fields.

I came across this issue https://github.com/redhat-developer/yaml-language-server/issues/190 that you have added in yaml-language-server

I could see part of this #112 that you tried to extend the vscode-yaml functionality to your quarkus vscode client with this but PR code is not present in master branch now. May I know whether you changed your approach on implementing yaml related capabilities for the quarkus ls and what is the progress now?
Did you implement you own vesion of language server in java for this?
Would you recommend a new language server implementation in java for this?

Please share your thoughts

@angelozerr
Copy link
Contributor

We support basicly application.yaml in quarkus tooling which provides completion hover and validation for quarkus properties generated from the Java quarkus project.

To do that we generate by the quarkus language server a yaml json schema whith those quarkus properties and that is it.

After that in Intellij we have defined a json schema extension point which uses this generated schema.

In vscode we use the yaml json extension from vscode-yaml.

It provides basic support. Ideally it would be nice to have an extensible yaml language server to manage custom completion (not based on json schema) like we did with our xml language server lemminx.

But is is an hard and long work, I am not sure that it is the priority of the yaml language server.

@arunvenmany-ibm
Copy link
Author

@angelozerr
Did you try extending the yaml-language-server ?
I am thinking of adding yaml-language-server as a library in my custom language server(trying in typescript) and then override the functionality when needed.
In our case, our requirement is that we need to validate the yaml + there are some properties which needs to validated/completed using custom web api's

@angelozerr
Copy link
Contributor

@angelozerr
Did you try extending the yaml-language-server ?

No but I am sure it is possible. Perhaps I am wrong. I suggest that you ask to yaml language server community

I am thinking of adding yaml-language-server as a library in my custom language server(trying in typescript) and then override the functionality when needed.
In our case, our requirement is that we need to validate the yaml + there are some properties which needs to validated/completed using custom web api's

Ok

But in Intellij I am not sure it is a good idea to consume yaml ls since IntelliJ provides a nice yaml support. You will need for instance filter error from yaml ls to avoid shoxing duplicate error with the IntelliJ yaml validator

@angelozerr
Copy link
Contributor

I could see part of this #112 that you tried to extend the vscode-yaml functionality to your quarkus vscode client with this but redhat-developer/vscode-quarkus#189 code is not present in master branch now. May I know whether you changed your approach on implementing yaml related capabilities for the quarkus ls and what is the progress now?

Sorry I don't give you answer about your question. This yaml support has been moved to the vscode MicroProfile support
https://github.com/redhat-developer/vscode-microprofile/tree/master/src/yaml

@angelozerr
Copy link
Contributor

I close this issue since it was just a discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants