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

Fix Quick Info integration tests #52354

Merged
merged 1 commit into from
Apr 2, 2021
Merged

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Apr 1, 2021

No description provided.

@sharwell sharwell requested a review from a team as a code owner April 1, 2021 23:57
@sharwell sharwell enabled auto-merge April 2, 2021 02:43
protected void WaitForQuickInfo()
{
VisualStudioInstance.Workspace.WaitForAsyncOperations(Helper.HangMitigatingTimeout, FeatureAttribute.DiagnosticService);
VisualStudioInstance.Workspace.WaitForAsyncOperations(Helper.HangMitigatingTimeout, FeatureAttribute.ErrorSquiggles);
Copy link
Member

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?

Copy link
Member Author

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.

@sharwell sharwell merged commit 7a567d1 into dotnet:main Apr 2, 2021
@ghost ghost added this to the Next milestone Apr 2, 2021
{
ThreadHelper.JoinableTaskFactory.Run(async () =>
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
Copy link
Member

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?

Copy link
Member Author

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()

Copy link
Member Author

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.

@sharwell sharwell deleted the quickinfo-test branch April 2, 2021 23:12
@dibarbet dibarbet modified the milestones: Next, 16.10.P3 Apr 26, 2021
@scott-weeden
Copy link

What library is JoinableTaskFactory included with? I'm unable to build any of the Extensibility projects using the community preview edition.

image

@sharwell
Copy link
Member Author

@scott-weeden That looks like a question for microsoft/VSExtensibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants