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

Update FAR and Go to Def to work on indexers #76220

Merged
merged 8 commits into from
Dec 3, 2024

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #31819

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 2, 2024 05:09
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 2, 2024
@@ -66,7 +66,8 @@ internal abstract class AbstractGoToDefinitionSymbolService : IGoToDefinitionSym
{
var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
var token = await syntaxTree.GetTouchingTokenAsync(position, syntaxFacts.IsBindableToken, cancellationToken, findInsideTrivia: true).ConfigureAwait(false);
var token = await syntaxTree.GetTouchingTokenAsync(
semanticModel: null, position, syntaxFacts.IsBindableToken, cancellationToken, findInsideTrivia: true).ConfigureAwait(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

null

why not pass in a semantic model?

Copy link
Member Author

Choose a reason for hiding this comment

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

so this helper is GetTargetIfControlFlowAsync. which is basically saying "if you're on a keyword like 'continue' go to the dest of that". That's purely syntactic and doesn't need semantics here.

though let me see if i can clean up duplicative work.

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

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 VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find All References finds nothing for indexers declared outside the solution
3 participants