The Wayback Machine - https://web.archive.org/web/20201215055728/https://github.com/github/VisualStudio/pull/91
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

[wip] Error handling/bubbling from viewmodels to views to view hosts #91

Closed
wants to merge 4 commits into from

Conversation

@shana
Copy link
Collaborator

@shana shana commented Sep 16, 2015

Adds a way to surface errors from the view model to the view so that view hosts can get to them.

ViewModels are responsible for handling the UI on the view they control, but they shouldn't be handling UI for things outside of the view. In this case, we're showing errors in VS outside the view, and that should be handled by the section that is hosting the view.

This requires that errors be propagated from the viewmodel to the view and from there to the host via the IView interface, since hosts don't usually know what they're hosting.

shana added 4 commits Sep 15, 2015
UI errors were getting shown directly from the underlying view model,
fix that.
Make sure everything about the publish dialog gets disposed once it's
done, and hide it once it's done.
@shana shana changed the title Error handling/bubbling from viewmodels to views to view hosts [wip] Error handling/bubbling from viewmodels to views to view hosts Sep 16, 2015
@mponce1 mponce1 added the WIP label May 19, 2016
@shana shana closed this Oct 4, 2016
@shana shana deleted the shana/error-handling branch Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.