Skip to content

One eager diagnostic provider can influence others negatively #159555

@hediet

Description

@hediet

I wonder why all of line 14 becomes gray (i.e. unused) after I remove line 13.
I guess this is because the decorations of line 13 get applied to line 14 which becomes line 13.
I think we can improve this by listening to text edits and updating the cache accordingly - when a line is deleted, its decorations should be deleted too and not just applied to whatever lines becomes the deleted line.

recording

Another example:
Code_-_Insiders_DTmDeMLoVL

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderslanguages-diagnosticsSource problems reportingverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions