When the user makes a change to their configuration, the executable, or their coding standard file, we should clear any existing diagnostics. It's very possible that these have become invalid, so, while the linter is running, they should not see potentially invalid diagnostics.
Reproduction Steps
Make one of the above changes.
Note that the diagnostics are not erased.
Expected Behavior
Diagnostics should be cleared when there is a meaningful change to the possible results of the diagnostics search.
Description
When the user makes a change to their configuration, the executable, or their coding standard file, we should clear any existing diagnostics. It's very possible that these have become invalid, so, while the linter is running, they should not see potentially invalid diagnostics.
Reproduction Steps
Expected Behavior
Diagnostics should be cleared when there is a meaningful change to the possible results of the diagnostics search.