Skip to content

Commit 6798dea

Browse files
Updated XML comment for MessageBox.ShowConfirm() and suppressed a warning for InfoBar.OnClosed
1 parent 9e2ed6a commit 6798dea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/toolkit/Community.VisualStudio.Toolkit.Shared/Notifications/InfoBar.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public void Close()
172172
void IVsInfoBarUIEvents.OnClosed(IVsInfoBarUIElement infoBarUIElement)
173173
{
174174
IsVisible = false;
175+
ThreadHelper.ThrowIfNotOnUIThread();
175176
_uiElement?.Unadvise(_listenerCookie);
176177
}
177178

src/toolkit/Community.VisualStudio.Toolkit.Shared/Notifications/MessageBox.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public async Task<MessageBoxResult> ShowWarningAsync(string line1, string line2
9595
}
9696

9797
/// <summary>
98-
/// Shows a yes/no/cancel message box.
98+
/// Shows a yes/no message box.
9999
/// </summary>
100100
/// <returns>true if the user clicks the 'Yes' button.</returns>
101101
public bool ShowConfirm(string line1, string line2 = "")
@@ -105,7 +105,7 @@ public bool ShowConfirm(string line1, string line2 = "")
105105
}
106106

107107
/// <summary>
108-
/// Shows a yes/no/cancel message box.
108+
/// Shows a yes/no message box.
109109
/// </summary>
110110
/// <returns>true if the user clicks the 'Yes' button.</returns>
111111
public async Task<bool> ShowConfirmAsync(string line1, string line2 = "")

0 commit comments

Comments
 (0)