ballerina-platform / ballerina-lang

The Ballerina Programming Language
https://ballerina.io/
Apache License 2.0
3.66k stars 748 forks source link

[Bug]: Fill record field code action and completion item giving partial result for nested records #43120

Open LakshanWeerasinghe opened 3 months ago

LakshanWeerasinghe commented 3 months ago

Description

$subject

When the record is nested and there are record inclusions for nested record the code action and completion item is not giving partial result.

Steps to Reproduce

type T record {
    Foo foo;
};

type AB record {|
    int a;
    int b;
|};

type Foo record {|
    *AB;
    Bar bar;
    Baz baz;
|};

type Bar record {|
    *AB;
|};

type Baz record {|
    *AB;
|};

function fn() {
    T t  = {<CURSOR>};
}

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

nipunayf commented 3 months ago

Duplicate of https://github.com/ballerina-platform/ballerina-lang/issues/42394