Syntax highlighting sometimes gets out of sync #211369
Labels
bug
Issue identified by VS Code Team member as probable bug
important
Issue identified as high-priority
tokenization
Text tokenization
Milestone
I had this issue raised at Dart-Code/Dart-Code#5082 and although I'd only seen it a few times in the past, I just saw it again today. I was typing in a file, and a bunch of colours got out of sync in my editor.
While my first thought was that it was an issue with the semantic token or textmate info, the "Inspect Tokens and Scopes" command shows in the tooltip that the same scopes are applied to the whole of words that are coloured differently.
Unfortunately I don't have reliable steps to reproduce, it just happens sometimes (it might have started when I saved a file and briefly saw "VS Code is waiting for Code Actions").
Here you can see that VS Code says the foreground color is the same for two positions in this word, yet one part is pink and one part is blue:
colours.mp4
The text was updated successfully, but these errors were encountered: