Add support for YAML configuration files#189
Conversation
| return undefined; | ||
| } | ||
|
|
||
| if (ext.packageJSON.version && !semver.gte(ext.packageJSON.version, '0.0.15')) { |
There was a problem hiding this comment.
@tsmaeder if Che doesn't have the proper vscode-yaml version, will users be able to install a more recent version?
|
This PR requires the MicroProfile LS PR redhat-developer/quarkus-ls#191 (this PR provides a new LSP service which convert the MicroProfileProjectInfo in a JSON Schema used by the YAML support). Please note this MicroProfile LS PR must be improved to support value type (string, number, array, etc). I will continue to work on it. This PR uses the vscode-yaml, so you need to install vscode-yaml to play with it. The check of vscode-yaml installation is done with the same thing than https://github.com/Azure/vscode-kubernetes-tools but I can change anything if you wish. As it uses the vscode-yaml, if you have Spring Boot vscod extension, please change the type of the file to YAML otherwise the yaml ls will never called. The YAML support have some limitations:
|
0cfc0cf to
2bd8d50
Compare
|
I think it would be nice if there was a button that allowed you to install vscode-yaml without going to the extensions pane. It would be very convenient for the user. The Java extension pack has similar functionality where you can click a link to automatically install a missing extension: @fbricon @angelozerr Should I create a separate issue for this? |
2bd8d50 to
768a26e
Compare
Yes please! |
|
Please delete vscode-quarkus/src/extension.ts Lines 78 to 82 in 768a26e since |
768a26e to
cc5bcd7
Compare
cc5bcd7 to
71188fb
Compare
@xorye done |
|
It asks me to install the YAML extension on startup, even before I started to open an application.yaml |
|
Indeed but is it something that @xorye could improve it once the pr is merged? Or perhaps you want that i remove the dialog? |
71188fb to
f1dc000
Compare
f1dc000 to
e6b59cb
Compare
|
When adding a new quarkus extension, after opening application.yaml, there's an error in the log: then completion stops working |
e6b59cb to
f59a5bc
Compare
See redhat-developer/quarkus-ls#112 Signed-off-by: azerr <azerr@redhat.com>

Add support for YAML configuration files
See redhat-developer/quarkus-ls#112
Signed-off-by: azerr azerr@redhat.com