How it could look like with mutability & ownership indication: refs are purple, mutable refs are redder than that. Mutable vars should look like darker blue.
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:
{
"editor.semanticTokenColorCustomizations": {
"rules": {
"*.mutable": {
"fontStyle": "", // underline is the default
},
}
},
}
Interesting, but I can't find anything on what kinds of strings there are, like "parameter", "variable". The doc file only gives one example and gives no links, and searching for semanticTokenColorCustomizations in the repo, I find only that page.
This thread show only some examples and links to color themes, but not keywords.
If necessary, extensions can declare new types and modifiers or create sub types of existing types through the semanticTokenTypes and semanticTokenModifiers contribution points in their extension's package.json