Skip to content
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

[Feature request] Helm chart syntax highlighting support #329

Open
darthlynx opened this issue Jan 20, 2020 · 6 comments
Open

[Feature request] Helm chart syntax highlighting support #329

darthlynx opened this issue Jan 20, 2020 · 6 comments

Comments

@darthlynx
Copy link

Hi there.
I'm using WWD almost a year because of excellent Kubernetes scheme support.
It would be great to have the Helm charts syntax highlighting support too, because Helm de facto is the most common package manager for Kubernetes.

Are there any plans around this in your roadmap?

Thanks

@mickaelistria
Copy link
Contributor

That can be investigated. Do you have an example of Helm Chart to share? Are those Yaml files? what's their usual name patterns? Is there a schema for those somewhere?

@darthlynx
Copy link
Author

As I know, helm uses golang template parser.

You may find more information about Helm here.

And here you may find some examples and schemes.

Please, let me know if you need anything else.
Thanks

@darthlynx
Copy link
Author

Basically, helm charts consist of template files (.tpl) , which are still the kubernetes yaml files with the placeholders in double curly braces. The values for the placeholders should be stored in the values.yaml file

@mickaelistria
Copy link
Contributor

I think this would need to be supported in the https://github.com/redhat-developer/yaml-language-server used by Wild Web Developer. I've opened redhat-developer/yaml-language-server#220 to request that.
In the meantime, you could try some hack: in Preferences > General > Content-Types, browse to Text>Wild Web Developer...>JSON and add *.tpf as supported pattern. This should at least open the .yaml editor.

@angelozerr
Copy link
Contributor

angelozerr commented Jan 21, 2020

@mickaelistria the initial issue is about syntax highlight for helm. I think WWD should embed https://github.com/Azure/vscode-kubernetes-tools/blob/master/syntaxes/helm.tmLanguage.json

And if you see https://github.com/Azure/vscode-kubernetes-tools/blob/127ec070c8dabd56901ce13ff81bd6f561e4f087/src/yaml-support/yaml-schema.ts#L36 it uses the registerContributor of the yaml language server. It's exactly the same feature that we use for vscode-quarkus to manage our application.yaml.

To do that we need #318 and it's a work that I have started in https://github.com/angelozerr/wildwebdeveloper/tree/yaml-custom-schema

In otherwise it seems registerContributor support have 2 usecases for WWD :)

@sebthom
Copy link
Contributor

sebthom commented Jan 13, 2025

You can use my plugin https://github.com/sebthom/extra-syntax-highlighting-eclipse-plugin to get jinja and helm chart syntax highlighting.

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

No branches or pull requests

4 participants