Skip to content

Fix Quick Info integration tests#52354

Merged
sharwell merged 1 commit intodotnet:mainfrom
sharwell:quickinfo-test
Apr 2, 2021
Merged

Fix Quick Info integration tests#52354
sharwell merged 1 commit intodotnet:mainfrom
sharwell:quickinfo-test

Conversation

@sharwell
Copy link
Contributor

@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
@ghost ghost added the Area-IDE label Apr 1, 2021
@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
Contributor

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
Contributor 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
Contributor 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
Contributor 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
@sweeden-ttu
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
Contributor 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