Race condition bug in Formatter when requesting formatted changes for a sub-span in a file #67887
Labels
Area-IDE
Bug
Feature - IDE0055
Formatting
Tenet-Reliability
Customer telemetry indicates that the product is failing in a crash/hang/dataloss manner.
untriaged
Issues and PRs which have not yet been triaged by a lead
As part of testing the changes in #67818, I have identified a race condition bug in the Formatter wherein it intermittently reports (incorrect) non-zero formatting changes when asked for formatting changes for a sub-span but reports zero formatting changes when asked for full file span.
Test code where I get wrong IDE0055 violations from lightbulb (span-based) invocation:
Below is the local (temporary) product change in FormattingAnalyzerHelper.cs to handle optional FilterSpan from analysis context. For the above case, I am hitting the breakpoint at line
formattingBug = true
, indicating the formatter race condition bug I explained above:The text was updated successfully, but these errors were encountered: