File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 = "" )
You can’t perform that action at this time.
0 commit comments