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]: Invalid Fill required fields code action #40137

Closed
mindula opened this issue Apr 6, 2023 · 3 comments · Fixed by #41053
Closed

[Bug]: Invalid Fill required fields code action #40137

mindula opened this issue Apr 6, 2023 · 3 comments · Fixed by #41053
Assignees
Labels
Area/CodeAction Language Server Code Actions Points/1 Equivalent to one day effort Priority/Low Status/Blocked Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug userCategory/Editor
Milestone

Comments

@mindula
Copy link
Contributor

mindula commented Apr 6, 2023

Description

Consider the following scenario,

Screen.Recording.2023-04-06.at.22.52.04.mov

The 'type field is applied again with the code action even though it already exists.

Steps to Reproduce

type Foo record {|
    int 'type;
    string name;
|};

public function testFun() {
    Foo & readonly val = {'type: 0};
}

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 Apr 6, 2023
@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Editor labels Apr 6, 2023
@mindula mindula removed the needTriage The issue has to be inspected and labeled manually label Apr 6, 2023
@IMS94 IMS94 added the Points/1 Equivalent to one day effort label Apr 18, 2023
@malinthar
Copy link
Contributor

Blocked by #40294

@pcnfernando
Copy link
Member

Assigned to @dulajdilshan as per #38448 (comment)

@github-actions
Copy link

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.

@malinthar malinthar added this to the 2201.8.0 milestone Sep 18, 2023
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 Points/1 Equivalent to one day effort Priority/Low Status/Blocked Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug userCategory/Editor
Projects
Archived in project
7 participants