vscode-python: Syntax highlighting breaks when adding function return type (MPLS/Pylance)

  • VSCode Version: 1.49.3
  • OS Version:10.0.0.19042

Steps to Reproduce:

Does this issue occur when all extensions are disabled?: Yes/No when I write a function in python, and put arrow to mark that the function returns value (the ->), the arrow is destroying the syntax highlight and the linter (the part that checks if the keywords have been typed correctly) image

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 16

Most upvoted comments

Disable the “Python for VSCode” extension will fix the issue.

Name: Python for VSCode Id: tht13.python Description: Python language extension for vscode Version: 0.2.3 Publisher: Thomas Haakon Townsend VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=tht13.python that is the problematic extention

Outdated extensions should be removed from the store automatically. It is easy to trust extensions with high download count.