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.

[LSP] Words surrounded by back quotes should be blue in markdown comments

See original GitHub issue

Describe the bug Previously if you surrounded a word with back quotes it would turn blue in a markdown comment (triple slash), but it no longer does with LSP.

To Reproduce Add this comment:

/// `this should be blue`

Expected behavior Back quotes should emphasize things as before.

Screenshots Screen Shot 2021-05-08 at 9 01 20 AM

Versions (please complete the following information):

  • VS Code version:
1.57.0-insider
Commit: b95b73b7b074f5dddccd57e5e290617f1a767ec1
  • Dart extension version: 3.22.0
  • Dart/Flutter SDK version:
Flutter 2.3.0-0.1.pre • channel unknown • unknown source
Framework • revision d72bfb8d07 (12 days ago) • 2021-04-26 06:05:55 -0700
Engine • revision de6e1adf97
Tools • Dart 2.14.0 (build 2.14.0-18.0.dev)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Jun 11, 2021

@jducaud yep, understood. The difference between your screenshots is really the difference between LSP semantic tokens or the textmate grammar. The reason it works without the extension enabled now is that in the recent release of VS Code includes the textmate grammar from this extension directly in VS Code.

If you want to disable semantic tokens for now until this is addressed, you can add the following to your VS Code user settings:

"[dart]": {
	"editor.semanticHighlighting.enabled": false
}

This will result in the same colouring as your first screenshot without needing to disable LSP or the extension. It does mean a few things may not be coloured correctly due to limitations of the regular expressions (for example if you name a method set it’ll be coloured like the set keyword instead of a method), though you might it’s worth the trade-off.

0reactions
jducaudcommented, Jun 11, 2021

Thank you @DanTup! This trick is a good provisional workaround

Read more comments on GitHub >

github_iconTop Results From Across the Web

quote back-tick quote...enclosed in back-ticks - Stack Overflow
The first argument to log here is quote, back-tick, quote. I would like to embed this in a sentence in a markdown document...
Read more >
Writing one sentence per line - Hacker News
One sentence per line means diffs will operate per-sentence, ... text (output is similar to output of latexdiff: red = word removed, blue...
Read more >
BBEdit 14.0 User Manual - Amazon S3
Use typographer's quotes – 245 ... not BBEdit should back up a given file. ... BBEdit defines a paragraph as a block of...
Read more >
Modus Themes (Modus Operandi and Modus Vivendi)
(a) The FSF's Back-Cover Text is: “You have the freedom to copy and modify ... Comments are gray, strings are blue colored, doc...
Read more >
Applying UML and Patterns - The University of Texas at Dallas
OOA/D. And, like me, you will find yourself going back to it, to refresh your memory, or to gain further insights ... cess...
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