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]: There are two sets of descriptions when hovering over a function call expression #41897

Open
nipunayf opened this issue Dec 16, 2023 · 2 comments
Labels
Area/Hover Language Server Hover related issues Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug

Comments

@nipunayf
Copy link
Contributor

Description

When hovering over a documented function call expression, it generates two duplicated sets of descriptions in the same window, as shown below.

image

Steps to Reproduce

Hover over the function call expression in the following Ballerina code.

# Description.
#
# + param - parameter description  
# + return - return value description
function name(string param) returns string {
    return "hello";
};

public function main() {
    _ = na<cursor>me("hello");
}

Affected Version(s)

Ballerina 2201.8.3 (Swan Lake Update 8)

OS, DB, other environment details and versions

OS: macOS 14.1.2 23B92
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/Hover Language Server Hover related issues labels Dec 16, 2023
@mindula
Copy link
Contributor

mindula commented Jan 17, 2024

This will be fixed with #41773. @nipunayf can you verify?

@nipunayf
Copy link
Contributor Author

The problem occurs in a specific scenario that contains a series of single file projects and cannot be reproduced when attempting to isolate the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Hover Language Server Hover related issues Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Projects
None yet
Development

No branches or pull requests

2 participants