v2020.9.106814-devv2020.9.0Win 10.0.19041.4232.7.18 64Syntax highlighting is left to the theme and unaffected by the language server plugin.
After the python extension finishes loading the colors change from this 👍

to this ☹

There is nothing in the logs or anywhere to find. Since I'm on the Insider build and on the Pylance preview I suppose thats something new? Since I have never seen it before?
Is there a setting for this?
I'm using the One Dark Pro theme but the default one is also affected!
This is related to new support for semantic highlighting
{
"[python]": {
"editor.semanticHighlighting.enabled": false
}
}
see https://code.visualstudio.com/docs/getstarted/themes#_editor-semantic-highlighting
for more info
or issue #323
Ooh Dang! Thanks! I saw this one and immediately though: No that's not my issue 🙈
So basically: Its not a bug! It's a feature!!🙂 And I really appreciate it!
It's just: Currently the themes do not (yet) make wise use of it, right?
@ewerybody, please respond back to this is the disabling does not work
what?
ehm. The disabling works. I'm sorry. The "_Thanks_" was supposed to state that.
This issue has come back for me, even after adding this fix
{
"[python]": {
"editor.semanticHighlighting.enabled": false
}
}
to my settings.
EDIT: to clarify, this fix used to work, and now it doesn't.
EDIT2: after switching to a new theme, switching back, and refreshing, the syntax highlighting reverted back to what it should be. Proper syntax highlighting persisted after closing and reopening vscode, so..... I'm stumped.
Pylance just serves the data to VS Code; that setting is VS Code's toggle. They might have a bug or something. Maybe it's to do with trying to set it in the [python] block?
Most helpful comment
This is related to new support for semantic highlighting
see https://code.visualstudio.com/docs/getstarted/themes#_editor-semantic-highlighting
for more info
or issue #323