bungcip / better-toml

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

Mixed types in array leads to warning #33

Open miketheman opened 2 years ago

miketheman commented 2 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 2 years ago

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