Skip to content

Conversation

@mavasani
Copy link
Contributor

Scenario: User bulk selects diagnostics in the error list for suppression/baselining, which includes at least one suppressible diagnostic, but still doesn't see any context menu item for suppressing the diagnostics.

Cause: Our current logic to show the Suppress/Remove suppression commands require that all the selected diagnostics are active/suppressed respectively. The design team has decided that we should loosen this check to "require that at least one of the selected diagnostics is active/suppressed respectively" - this decision was based on the feedback from few people dogfooding this feature.

Fix: Trivial fix to not account for the irrelevant diagnostics when deciding whether or not to show the command. The implementation of the command already drops all the irrelevant diagnostics.

Testing: Verified that we get the desired context menu visibility for mixed error list selection and invoking the commands also work as expected.

Fixes #6425

…n the error list selection has some suppressed issues

Scenario: User bulk selects diagnostics in the error list for suppression/baselining, which includes at least one suppressable diagnostic, but still doesn't see any context menu item for suppressing the diagnostics.

Cause: Our current logic to show the Suppress/Remove suppresion commands require that all the selected diagnostics are active/suppressed respectively. The design team has decided that we should loosen this check to "require that at least one of the selected diagnostics is active/suppressed respectively - this decision was based on the feedback from few people dogfooding this feature.

Fix: Trivial fix to not account for the irrelevant diagnostics when deciding whether or not to show the command. The implementation of the command already drops all the irrelevant diagnostics.

Testing: Verified that we get the desired context menu visiblity for mixed error list selection and invoking the commands also work as expected.

Fixes dotnet#6425
@mavasani
Copy link
Contributor Author

@srivatsn
Copy link
Contributor

👍

@heejaechang
Copy link
Contributor

👍

one question, when there is actually no change (like all selected items are already suppressed or can't be suppressed), do we show preview window with empty changes?

my preference will be showing empty changes preview window so that user knows something happened, rather than silently nothing happens.

@mavasani
Copy link
Contributor Author

Tagging @MattGertz for approval.

@mavasani
Copy link
Contributor Author

@heejaechang If all selected issues are active, we don't show "Remove suppression" command, and if all selected issues are suppressed, we don't show "Suppress" command.

mavasani added a commit that referenced this pull request Oct 30, 2015
Right click "Suppress" should be enabled even when the error list selection has some suppressed issues
@mavasani mavasani merged commit 0953f9d into dotnet:stabilization Oct 30, 2015
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.

5 participants