Skip to content

fix: clear editor diagnostics and in-memory findings with the cache - #51

Open
Arthurvroum wants to merge 1 commit into
mainfrom
36-clear-cache-everywhere
Open

Arthurvroum wants to merge 1 commit into
mainfrom
36-clear-cache-everywhere

Conversation

@Arthurvroum

Copy link
Copy Markdown
Collaborator

Clear Analysis Cache cleared the sidebar, the saved snapshot and the stack data, but left the Problems panel and the last results in memory, which the ignore-list listener republished and saved again.

  • The command also clears the diagnostics and the last results.
  • It is refused while an analysis runs, whose results would be written back right after.
  • clearCache() waits for the cache load at startup and for writes still in flight, and writes are queued, so neither can restore what it deletes.

Tests run Run Analysis with a stubbed ctrace in a workspace: the Problems panel is empty after clearing, stays empty after an ignore-list change, and clearing during a run is refused.

Fixes #36

Clear Analysis Cache cleared the sidebar, the saved snapshot and the stack
data, but left the Problems panel and the last results in memory, which
the ignore-list listener republished and saved again.

- The command also clears the diagnostics and the last results.
- It is refused while an analysis runs, whose results would be written
  back right after.
- clearCache() waits for the cache load at startup and for writes still
  in flight, and writes are queued, so neither can restore what it deletes.

Tests run Run Analysis with a stubbed ctrace in a workspace: the Problems
panel is empty after clearing, stays empty after an ignore-list change,
and clearing during a run is refused.

Fixes #36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clear Analysis Cache leaves editor diagnostics and can restore cleared findings

1 participant