Some dependencies in Rust "Cargo.toml" file are randomly displayed in silver color #1359
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @ThibaultEbroussard, VS Code by default doesn't support Even Better TOML extension with semantic highlight off:![]() Even Better TOML extension with semantic highlight on:![]() TOML Language Support extension with semantic highlight off:![]() TOML Language Support extension with semantic highlight on:![]() Vira Theme can only assign colors to syntax scopes, but where the scopes (and colors) are applied is handled by language extensions or vscode built-in languages. Guessing you're using Even Better TOML extension, the issue is how they assign the scopes. The "random" things that becomes "white" is because they are — wrongly — considered as variables instead of property name: ![]() ⬆ Here you can see that both
|
Beta Was this translation helpful? Give feedback.
-
Hello, thank you for your reply. Since I didn’t experience this issue with your Material Theme, I initially thought the problem was coming from Vira Theme. It turns out the issue is actually caused by “Even Better TOML,” so I’ll see if I can report it to them. I apologize for the confusion, and thank you again for your help. |
Beta Was this translation helpful? Give feedback.
Hello @ThibaultEbroussard, VS Code by default doesn't support
.toml
files. You need an appropriate extension to get the proper highlight for toml files. Said that, how colors are applied highly depends on the extension used and how they apply syntax scopes. Here an example of how different extensions change the color syntax for toml files:Even Better TOML extension with semantic highlight off:
Even Better TOML extension with semantic highlight on:
TOML Language Support extension with semantic highlight off:
TOML Language Support extension with semantic highlight on:
Vira Theme can only assign colors to syntax scopes, but where the scopes (and colors) are applied is handled by languag…