In my workspace, I have multiple crates. I'd like to use common version like this, which is valid as far as I know:
[package]
name = "ultibi"
version.workspace = true
edition = "2021"
However, VS Code highlights the script and .w
as Toml Parser error: Expected "=", [ \t] or [A-Za-z0-9_\-] but "." found.
I am not sure if that's got anything to do with rust analyzer, but disabling BETTER Toml
didn't help. How can I hide/ignore this error?
This is caused by the extension Better TOML (bungcip.better-toml
), which has this deprecation notice at the top of its readme:
This repository is archieved. I currently don't have time to maintain this project anymore. I recommended to use https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml for better alternative.
The suggestion, Even Better Toml, supports the syntax correctly.