Skip to content

Make TryNavigateToMetadataSymbol asynchronous#58617

Merged
sharwell merged 1 commit intodotnet:mainfrom
sharwell:resolve-async
Jan 5, 2022
Merged

Make TryNavigateToMetadataSymbol asynchronous#58617
sharwell merged 1 commit intodotnet:mainfrom
sharwell:resolve-async

Conversation

@sharwell
Copy link
Copy Markdown
Contributor

@sharwell sharwell commented Jan 4, 2022

Fixes #58612

@sharwell sharwell requested a review from a team as a code owner January 4, 2022 22:35
@ghost ghost added the Area-IDE label Jan 4, 2022

if (symbol.Kind == SymbolKind.Namespace)
var projectAndSymbol = await TryResolveSymbolInCurrentSolutionAsync(workspace, symbolKey).ConfigureAwait(false);
if (projectAndSymbol is not (var project, { Kind: not SymbolKind.Namespace } symbol))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Double negative make Cyrus brain hurt :-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, me too

@sharwell sharwell merged commit 7f889ac into dotnet:main Jan 5, 2022
@sharwell sharwell deleted the resolve-async branch January 5, 2022 00:42
@ghost ghost added this to the Next milestone Jan 5, 2022
@Cosifne Cosifne modified the milestones: Next, 17.1.P3 Jan 5, 2022
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.

InvalidOperationException: WaitAndGetResult cannot be called from a thread pool thread

4 participants