Skip to content

Code analysis stop working (until Reload Window) if a save is done while code analysis is running but VS Code doesn't actually send a didSave message #12721

Open
@sean-mcmanus

Description

@sean-mcmanus
  1. Run code analysis on some file.
  2. Make some edit and save to some file that is locked for editing by clang-tidy. You should get a file save failed notification from VS Code.
  3. Cancel code analysis (optional, it should repro the bug even if you wait till it finishes).
  4. Run code analysis again.

Bug: Code analysis never actually runs and is stuck in a running state (internally it's waiting for the save of the file that never arrived). The code expected that a willSaveWaitUntil will always be followed by a save.

Metadata

Metadata

Assignees

Labels

Feature: Code AnalysisRelated to integration with clang-tidy, cppcheck, cl.exe /analyze, etc.Language ServicebugpostponedIn progress, but postponed in favor of other higher priority tasks

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions