Search code examples
pythonvisual-studio-codepylance

Pylance syntax highlighting randomly stopped working (mac)


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?


Solution

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

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