tamasfe / taplo

A TOML toolkit written in Rust
https://taplo.tamasfe.dev
MIT License
1.35k stars 114 forks source link

Ignore version property requirement for Hugo theme.toml #362

Open wjh18 opened 1 year ago

wjh18 commented 1 year ago

Hugo themes require a theme.toml configuration file which the Even Better TOML VS Code extension automatically associates with the WordPress theme schema here based on the file name. At least, I believe that is what's happening.

As a result, I'm getting a "version" is a required property error in VS Code for my Hugo theme's theme.toml file.

I'm wondering if there's a way to ignore this, or if any file named theme.toml should even use this schema by default (WP isn't the only framework that uses a theme.toml file so this seems like a premature assumption).

Thoughts?

fathonyfath commented 1 year ago

Also happening to me, you could disable the schema feature by adding "evenBetterToml.schema.enabled": false, to settings.json and then disable-enable the plugins.