Home > Software design >  Pylance syntax highlighting randomly stopped working (mac)
Pylance syntax highlighting randomly stopped working (mac)

Time:01-19

The syntax highlighting feature of Pylance randomly stopped working today (nothing obvious that I was doing that triggered it, just stopped).

This is what it looks like now - before the variables and modules were in different colors, like api_session in example.

enter image description here

I'm on the latest version of Pylance and VSCode. Tried uninstall / reinstall of both Pylance and VSCode, and computer restart, no joy.

Anyone had this before?

CodePudding user response:

Check the "python.languageServer": "Pylance", in your settings.

For me, it seems that in an update, it was changed to None.

  • Related