-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use this extension? #4
Comments
Hi, @dbeckwith. If you have enabled Rust Analyzer, then you don't need this extension. My grammar is merged into Rust Analyzer, and RA's grammar overrides others when it starts. However, you won't see highlighting based on Textmate scopes unless you have semantic highlighting disabled in VS Code. |
The Textmate grammar only provides the scopes. If you don't like the color applied to one of the tokens, you can override it in |
Okay thanks, I'll try customizing it. Do you have an example theme that assigns different colors to the different scopes that I could try to verify that it's working? Like the one in the screenshot in the README? |
My Yarra Valley theme should work. There is a screenshot of Rust code in the README. |
Thanks for catching that—I have pushed a fix. |
I installed this extension because I thought the default Rust syntax highlighting was lacking in VS Code, but I can't figure out how to get VS Code to use it. I also have the official rust-analyzer extension installed, and I saw #1, but I'm confused as to how to change the grammar association for Rust. I tried disabling the VS Code builtin Rust syntax extension, but now Rust files have no highlighting at all. Any ideas?
The text was updated successfully, but these errors were encountered: