Skip to content

Conversation

@CyrusNajmabadi
Copy link
Contributor

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 17, 2024 21:57
@CyrusNajmabadi
Copy link
Contributor Author

@JoeRobich @jasonmalinowski ptal.

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 17, 2024

var point = nullablePoint.Value;
var proximityExpressions = await _proximityExpressionsService.GetProximityExpressionsAsync(
document, point.Position, context.UserCancellationToken).ConfigureAwait(true);
Copy link
Member

Choose a reason for hiding this comment

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

There's places you're doing a ConfigureAwait(true) before we return a VsEnumBSTR and also places we you are donig ConfigureAwait(false); for example ResolveName below. I don't imagine we need to be on the UI thread at that point so I think it's fine, but I'd ask that either we make them consistently ConfigureAwait(true) or ConfigureAwait(false).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Platform guidance is anything known to only be called from a jtf run should be CA(true). That way the main thread can execute those callbacks instead of blocking waiting for a big thread to do it.

@CyrusNajmabadi CyrusNajmabadi merged commit 5a23df0 into dotnet:main Dec 18, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 18, 2024
@CyrusNajmabadi CyrusNajmabadi deleted the debugWaitAndGetResult branch December 18, 2024 00:58
@dibarbet dibarbet modified the milestones: Next, 17.13 P3 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants