rust-analyzer / rust-analyzer.github.io

https://rust-analyzer.github.io/
87 stars 51 forks source link

Can't turn off special font style for mutable variables #188

Closed proehlen closed 2 years ago

proehlen commented 2 years ago

Hi, the manual says the following about this feature:

You can customize the look of different semantic elements in the source code. For example, mutable bindings are underlined by default and you can override this behavior by adding the following section to your settings.json

However, there doesn't seem to be a way to set this to "normal" - ie turn the feature off. The only options it will accept for that setting are blank - in which case I get underlined text - or variations on bold, italic, strike through etc.

Is there a way to disable this altogether? I personally find different font styles in my source to be really distracting.

Thanks

proehlen commented 2 years ago

Sorry, nevermind, I figured it out:

    "editor.semanticTokenColorCustomizations": {
        "enabled": false
    }
lnicola commented 2 years ago

This used to work, I think it might be a regression or a VS Code change. Your workaround doesn't disable only the underlines, but the whole semantic colorization feature (which does much more).