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

Support definition for resource-method-name #42764

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KavinduZoysa
Copy link
Contributor

Purpose

Fixes #42220

Copy link
Contributor

@nipunayf nipunayf left a comment

Choose a reason for hiding this comment

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

Also, some of the semantic api tests are failing as well. May need to check those

Comment on lines 1692 to 1697
if (this.symbolAtCursor == null) {
setEnclosingNode(resourceAccessInvocation.symbol, resourceAccessInvocation.resourceAccessPathSegments.pos);
setEnclosingNode(symbol, resourceAccessInvocation.resourceAccessPathSegments.pos);
}
if (this.symbolAtCursor == null) {
setEnclosingNode(symbol, resourceAccessInvocation.name.pos);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Both conditions are the same; hence, the first logic has become redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: The resource paths are highlighted for "Go to definition" instead of the method
2 participants