Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ShowMessageBoxOnError option #391

Closed
wants to merge 1 commit into from

Conversation

chris84948
Copy link

Description:

Fixes #387 Add option to hide "Error in StylerPackage" popup message

Created a new setting called ShowMessageBoxOnError in StylerOptions and IStylerOptions. This setting then is used in StylerPackage.Formatting whenever the ShowMessageBox function is called.

If ShowMessageBoxOnError = false, the message box will not be shown.

Checklist:

  • Code required no comments due to simplicity
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • I have tested my changes by running the extension in VS2019
  • I have tested my changes by running the extension in VS2022

@grochocki
Copy link
Contributor

Thank you for the contribution! Sorry for the delay in taking action on this PR but adding a setting to suppress error dialogs is not the approach we'd like to take here. Open to overhauling how we handle errors, but it would need to involve writing to output and/or integrating with errors/warnings pane as proposed in #271.

@grochocki grochocki closed this Dec 28, 2023
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.

Add option to hide "Error in StylerPackage" popup message
2 participants