You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening the theme.toml file with helix and the taplo lsp, a ton of errors appear:
This is because taplo uses the json schema store for schemas. (This is useful, for example, to detect errors in Cargo.toml). The json schema store has a schema for theme.json (schema) which comes from WordPress and has nothing to do with helix. This schema is incorrectly used for helix's theme.toml file.
Reproduction Steps
I tried this:
Have taplo lsp installed
cd to your helix repo
hx theme.toml
I expected this to happen:
No errors show
Instead, this happened:
Many errors appear
Helix log
~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines
Platform
Linux
Terminal Emulator
Kitty
Helix Version
helix 22.05
The text was updated successfully, but these errors were encountered:
Is there a way for us to write a schema for themes which would override the theme.json one? Ideally we could do the same for config.toml to add auto-complete (#2894)
Alternatively it would be nice if we could configure this behavior in the args passed to taplo in languages.toml. I think it's a little assumptive of taplo to automatically consider all theme.toml files to be wordpress themes.
Summary
When opening the
![image](https://user-images.githubusercontent.com/58790821/183905923-f9e45fe0-0e70-4373-9b07-67e5d37c7c9b.png)
theme.toml
file with helix and thetaplo
lsp, a ton of errors appear:This is because
taplo
uses the json schema store for schemas. (This is useful, for example, to detect errors inCargo.toml
). The json schema store has a schema fortheme.json
(schema) which comes from WordPress and has nothing to do with helix. This schema is incorrectly used for helix'stheme.toml
file.Reproduction Steps
I tried this:
hx theme.toml
I expected this to happen:
No errors show
Instead, this happened:
Many errors appear
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
Kitty
Helix Version
helix 22.05
The text was updated successfully, but these errors were encountered: