Skip to content

fix / avoid throwing out hidden and filtered diagnostics - #106

Merged
davidramnero merged 5 commits into
mainfrom
fix-/-avoid-throwing-out-hidden-and-filtered-diagnostics
Aug 27, 2026
Merged

fix / avoid throwing out hidden and filtered diagnostics#106
davidramnero merged 5 commits into
mainfrom
fix-/-avoid-throwing-out-hidden-and-filtered-diagnostics

Conversation

@davidramnero

@davidramnero davidramnero commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Before, when e.g. switching severity level filtering like info -> warning -> info the diagnostics filtered out when switching to warning would not re-appear when switching back to info due to being thrown out. This is now fixed.

This is done through separating the storing and the displaying of diagnostics generated from analysis, and through a new property hidden (boolean) in the diagnostic metadata that determines of a diagnostic should be visible.

Comment thread src/extension.ts
cwd,
});

// if spawn fails (e.g. ENOENT or permission denied)

@davidramnero davidramnero Aug 27, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff for everything below has really weird formatting, what really happened is that all of the below is just indented with +1 tab due to promisifying the whole block, see new line of code at 571: await new Promise<void>((resolve, reject) => {

@davidramnero
davidramnero merged commit 52207db into main Aug 27, 2026
7 checks passed
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.

2 participants