-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Better failure modes #1853
Better failure modes #1853
Conversation
When a login error occurs, display a message in our Team Explorer Connect pane with a Rety and Sign Out button.
StanleyGoldman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nameof maybe?
|
|
||
| void InvitationSectionPropertyChanged(object sender, PropertyChangedEventArgs e) | ||
| { | ||
| if (e.PropertyName == "IsVisible") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nameof maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was trying to stick with the style of the previous method which didn't use nameof, but you're right. I've converted this method and the previous to use nameof.
StanleyGoldman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else if?
| } | ||
| else | ||
|
|
||
| if (notGitHubRepo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else if?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this flag is set in the preceding block.
StanleyGoldman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits, otherwise cool..
When a login fails at VS startup, currently we just remove the connection from the TE connect page and pretend it never existed. With this PR, we show a message and allow the user to retry (in the case of non-auth-related) errors or sign out:
General connection error:
Auth error:
In addition, an error is shown in the GitHub pane with a link to open the Team Explorer Connect section to fix the problem:
The UI needs some love from @donokuda , but this is ready to play with!
Fixes #1305