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

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

Open
nipunayf opened this issue Feb 25, 2024 · 0 comments · May be fixed by #42764
Open

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

nipunayf opened this issue Feb 25, 2024 · 0 comments · May be fixed by #42764
Assignees
Labels
Area/Definition Language Server Go to Definition related issues Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Milestone

Comments

@nipunayf
Copy link
Contributor

Description

In a resource access, "Go to definition" should be highlighted on the method rather than the resource access parameters. However, as shown in the following example, it is highlighted on the resource parameter.

image

Steps to Reproduce

Attempt to use "Go to definition" on the following cursor positions.

import ballerina/http;

public function main() returns error? {
    http:Client cl = check new ("http://localhost:9090");
    _ = check cl->/fo<CURSOR1>od/apple.g<CURSOR2>et(targetType = json);
}

Affected Version(s)

Ballerina 2201.8.5 (Swan Lake Update 8)

OS, DB, other environment details and versions

OS: macOS 14.2.1 23C71
JDK: openjdk 17.0.8 2023-07-18

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@nipunayf nipunayf added Type/Bug Team/LanguageServer Language Server Implementation related issues. #Compiler Area/Definition Language Server Go to Definition related issues labels Feb 25, 2024
@KavinduZoysa KavinduZoysa self-assigned this Mar 14, 2024
@KavinduZoysa KavinduZoysa linked a pull request May 16, 2024 that will close this issue
@nipunayf nipunayf added this to the 2201.10.0 milestone May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Definition Language Server Go to Definition related issues Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Projects
Status: PR Sent
Development

Successfully merging a pull request may close this issue.

2 participants