Doesn't report Read / Write access for current word under the cursor #42
Labels
enhancement
New feature or request
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
According to https://code.visualstudio.com/api/references/theme-color#editor-colors, the language server should report read/write access for current variable (the word under the cursor), so that theme could assign them with different colors.
This is captured from the official documentation of VSCode.
This does work as expected if using old "Microsoft" language server.
As shown below, the variable "test" is under cursor, and it's write access so rendered as magenta, while the other occurrence of "test" is read access and rendered as blue.
It's magenta and blue because I configured this in my settings as below.
Actual behaviour
However, after switch to Pylance, it doesn't work any more. You would see both occurrences are rendered as green -- this is because language sever doesn't report the access type and it falls back to use the color defined for "selectionHighlightBackground" in my settings above.
Logs
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: