Skip to content

Conversation

@rgrunber
Copy link
Member

@rgrunber rgrunber commented Jul 25, 2024

The language server side supports clearing diagnostics from documents when they are excluded due to setting update. This is easily done by getting the list of documents that have any diagnostics, and comparing against the updated filter. Any new matches can have their diagnostics cleared. However, it does not support restoring diagnostics on documents that are no longer filtered. The main reason is because finding all documents and comparing them to the filters might be a lot more expensive for large projects. The diagnostics would be restored as soon as the document is modified. As a result we let this setting trigger the notification that recommends reloading the project.

@rgrunber rgrunber changed the title Add java.diagnostic.filter setting. Add setting to exclude files from diagnostic publishing. Jul 25, 2024
@rgrunber rgrunber requested a review from snjeza July 25, 2024 19:30
@rgrunber rgrunber force-pushed the fix-2150 branch 2 times, most recently from 9e349e6 to 93a1b7c Compare July 26, 2024 19:16
- java.diagnostic.filter setting
- Suggest project reload when the setting changes and add support for
  arrays in hasConfigKeyChanged(..)

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
@rgrunber rgrunber merged commit bf05afb into redhat-developer:master Jul 26, 2024
@rgrunber rgrunber deleted the fix-2150 branch July 26, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for excluding files from the problem tab

2 participants