tamasfe / taplo

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

When I create an app.toml file in an arbitrary folder inside my project, it returns an "expo" is a required property error? #602

Closed epicwhale closed 5 months ago

epicwhale commented 5 months ago

Is there some hardwiring in the VS code extension around 'app.toml' file names? Even a blank app.toml shows the following problem

image

But if i rename it to foo.toml, config.toml or anything else, it goes away.

panekj commented 5 months ago

Is there some hardwiring in the VS code extension around 'app.toml' file names?

No, but extension tries to guess which kind of file are you trying to edit currently and select best schema for that file to validate. You can specify custom schema via #:schema directive in file or select proper schema in the bottom right corner of VSCode (it should show up as Expo SDK for app.toml)

Duplicate of https://github.com/tamasfe/taplo/issues/457