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.

Dot-notation breaks highlightning

See original GitHub issue

Describe the bug If you place dot inside of line all further highlighting to the end of line will break and text become white

To Reproduce Steps to reproduce the behaviour:

  1. Download repo: https://github.com/jl0pd/IonideHighlightBug
  2. Open in VSCode

There is 2 parts in every example. First is right colorization, but splitted into different lines and second as one-liner with white text

Expected behaviour Colorization should not break. Both examples should be colored same way

Seq.map id [1 .. 0]
Seq.map 
    id 
    [1 .. 0]

Screenshots image

Also there is case when you can completely break colorization image

Environment (please complete the following information):

  • OS: Windows 10 1909
  • Ionide version: 4.17.0
  • VSCode version: 1.50.1
  • dotnet SDK version: 3.1.403
  • mono / .Net Framework version: .Net Framework 4.8 On Linux Mint 20 in VirtualBox with same Ionide/VSCode versions everything is ok

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Krzysztof-Cieslakcommented, Jul 18, 2022

I can’t reproduce it on latest Ionide: image

0reactions
sunahecommented, Dec 14, 2020

Too bad this is closed. It’s still an issue. Having a dot breaks colorization, unless the invocation is parenthesized: image

Interestingly, the issue does not reproduce in “Dark (Visual Studio)” theme that has no semantic colorization: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Correct style for line breaks when chaining methods in ...
The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can ...
Read more >
Using component dot notation with TypeScript to create a ...
This post will dive into the advantages of using component dot notation, highlight a few gotchas and provide some examples.
Read more >
Accessing Arbitrary Paths via String Dot Notation in JavaScript
I'd particularly like to highlight this one. Succint, to-the-point, and that break really helps performance-wise! /** * Co-worker's ...
Read more >
Whats happening in xCode when I lose syntax highlighting?
The syntax highlighting is gone and comes back slowly, and sometimes won't come ... I break with a return to a PassOut completion...
Read more >
Brand new Syntax - Proposals - TC39
Though, syntax highlighting helps prevent word soupiness in ... to change its syntax like this, because it never does a breaking change.
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