microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.64k stars 29.05k forks source link

Syntax highlighting and docs popup broken for python? #230070

Closed i-am-zaidali closed 3 weeks ago

i-am-zaidali commented 3 weeks ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. Open VScode
  2. Open a python file

It seems to be that syntax highlighting is partially broken. Things that used to be highlighted before updating (such as variables and class names) are now missing colors. This is not a problem with any theme extension as I tried multiple different themes and the result is the same. Syntax highlighting missing for one dark pro flat theme ^^^ Syntax highlighting missing for one dark pro flat theme

The second problem is the docstring popup when you hover over a specific identifier. The exact problem being that newlines are ignored. Doc Popup Original docstring

i-am-zaidali commented 3 weeks ago

So did a little digging and turns out that pylance extenson automatically uninstalled and hence python had no language server which ended up in missing syntax highlighting.