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

Continue on captured context after switching to the main thread #45874

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

sharwell
Copy link
Member

No description provided.

@sharwell sharwell requested a review from a team as a code owner July 10, 2020 18:13
@@ -65,7 +65,7 @@ internal class VisualStudioActiveDocumentTracker : ForegroundThreadAffinitizedOb
{
await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync();

var monitorSelectionService = (IVsMonitorSelection)await asyncServiceProvider.GetServiceAsync(typeof(SVsShellMonitorSelection)).ConfigureAwait(false);
var monitorSelectionService = (IVsMonitorSelection)await asyncServiceProvider.GetServiceAsync(typeof(SVsShellMonitorSelection)).ConfigureAwait(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this worth a comment in case a future developer thinks its a typo?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this worth a comment in case a future developer thinks its a typo?

No, this is a global rule for the product, as opposed to a special case.

@sharwell sharwell merged commit c9e3461 into dotnet:master Jul 13, 2020
@ghost ghost added this to the Next milestone Jul 13, 2020
@sharwell sharwell deleted the captured-context branch July 13, 2020 15:54
@JoeRobich JoeRobich modified the milestones: Next, 16.8.P1 Jul 20, 2020
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.

6 participants