bungcip / better-toml

toml extension for vs code editor
75 stars 13 forks source link

Mixed types in array leads to warning #33

Open miketheman opened 3 years ago

miketheman commented 3 years ago

Given a TOML key with an Array, When using valid syntax of strings and tables, Then a warning should not be raised.

Example:

include = [
    { path = "foo", format = "sdist" },
    "bar.md"
]

Triggers:

Cannot add value of type String to array of type InlineTable.

Desired behavior:

No trigger raised, as this is valid TOML syntax.

miketheman commented 3 years ago

Found the exact reference that shows this is allowed: https://github.com/toml-lang/toml/blob/8296d6ba97aaaf3151a32a22ed0513301ac650bf/toml.md#array