-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix Quick Info integration tests #52354
Conversation
protected void WaitForQuickInfo() | ||
{ | ||
VisualStudioInstance.Workspace.WaitForAsyncOperations(Helper.HangMitigatingTimeout, FeatureAttribute.DiagnosticService); | ||
VisualStudioInstance.Workspace.WaitForAsyncOperations(Helper.HangMitigatingTimeout, FeatureAttribute.ErrorSquiggles); |
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.
don't we still need to wait on some of these? otherwise quick info may come up before squiggles have, and then it won't show the diag data in it? or is that not a problem for some other reason?
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.
All calls to GetQuickInfo
are preceded by calls to InvokeQuickInfo
. The latter covers the cases.
{ | ||
ThreadHelper.JoinableTaskFactory.Run(async () => | ||
{ | ||
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); |
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.
@sharwell Why the SwitchToMainThreadAsync here if the GetQuickInfo doesn't have that?
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.
For the call to GetActiveTextView()
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.
GetQuickInfo also has it, but it's implicit in the ExecuteOnActiveView
call.
@scott-weeden That looks like a question for microsoft/VSExtensibility. |
No description provided.