selene icon indicating copy to clipboard operation
selene copied to clipboard

VSCode: Add configuration option to only show diagnostics for open files

Open LouieK22 opened this issue 5 years ago • 2 comments

Should there be a configuration option to show diagnostics for open files, or should this become the default behavior, which would be in line with other linting extension behavior?

LouieK22 avatar Apr 25 '20 19:04 LouieK22

How do other extensions solve these problems?

Kampfkarren avatar Jun 19 '21 22:06 Kampfkarren

Both eslint and rust-analyzer clear the diagnostics of a file once it has been closed. It does mean that you may forget about some of the diagnostics that pop up, so I imagine a checkbox setting to toggle this would suit everyone.

EDIT: maybe even breaking it down into an option which clears only warnings, and forcing errors to remain persist? So you can still catch breaking bugs.

I know this is a common thing when people open up vendored code, and then it clutters the problems panel

JohnnyMorganz avatar Jun 19 '21 23:06 JohnnyMorganz