question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax highlighting breaks when adding function return type (MPLS/Pylance)

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:16

github_iconTop GitHub Comments

59reactions
stephengineercommented, Dec 18, 2020

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

11reactions
1kammacommented, Oct 19, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

[VSCODE] Broken Syntax Highlighting When Add Func Return ...
When you write a function/method in vscode Python editor, and put arrow to mark that the function returns value -> , the arrow...
Read more >
Syntax highlighting not working for Python in VS Code with ...
I would try changing your theme and see if that leads to a different output as they all choose what they want to...
Read more >
Syntax Highlighting - Tree-sitter
The Tree-sitter highlighting system works by annotating ranges of source code with logical “highlight names” like function.method , type.builtin , keyword , etc ......
Read more >
highlight_string - Manual - PHP
Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax...
Read more >
highlight.js
197 languages and 248 styles; automatic language detection; multi-language code highlighting; available for node.js; works with any markup; compatible with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found