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]: Suggesting the wrong import module code action #42086

Closed
mindula opened this issue Feb 1, 2024 · 1 comment · Fixed by #42118
Closed

[Bug]: Suggesting the wrong import module code action #42086

mindula opened this issue Feb 1, 2024 · 1 comment · Fixed by #42118
Assignees
Labels
Area/CodeAction Language Server Code Actions Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Milestone

Comments

@mindula
Copy link
Contributor

mindula commented Feb 1, 2024

Description

Consider the following scenario,

Screen.Recording.2024-02-01.at.11.59.39.mov

In the above scenario we should suggest the import module code action to import the io module. However, instead we suggest the code action to import the regex module repeatedly.

Steps to Reproduce

import ballerina/regex;

public function main() {
   io:print(regex:searchAll("Hello world", "world"));
}

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Editor

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@mindula mindula added Type/Bug Team/LanguageServer Language Server Implementation related issues. #Compiler Area/CodeAction Language Server Code Actions labels Feb 1, 2024
@nipunayf nipunayf self-assigned this Feb 6, 2024
@nipunayf nipunayf moved this to In Progress in Ballerina Team Main Board Feb 6, 2024
@nipunayf nipunayf moved this from In Progress to PR Sent in Ballerina Team Main Board Feb 6, 2024
@github-project-automation github-project-automation bot moved this from PR Sent to Done in Ballerina Team Main Board Feb 8, 2024
Copy link

github-actions bot commented Feb 8, 2024

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

@nipunayf nipunayf added this to the 2201.9.0 milestone Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/CodeAction Language Server Code Actions Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Projects
Archived in project
2 participants