Skip to content

Syntax Highlighting in VS Code Flickers when typing quickly #6452

@charlespierce

Description

@charlespierce

When using rust-analyzer with VS Code, I've just started to see a flicker in the syntax highlighting when typing quickly. If I type slowly enough, no flickering happens, but if I type quickly (or hold down the backspace key to quickly remove several characters), the syntax highlighting keeps flickering.

It looks like it's switching between the correct highlighting and the highlighting that is used before r-a fully boots up. That is, while typing the coloring switches to the basic version that is used before r-a is done indexing everything and then catches up and switches back to the full highlighting.

I've tested with r-a nightly and still see the same behavior, though I don't see it in any other languages in VS Code.

OS: MacOS Catalina 10.15.7
VS Code: 1.50.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-unknownIt's unclear if the issue is E-hard or E-easy without digging inS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions