ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Bug]: Completion items are not properly ordered for client resource access actions

Open nipunayf opened this issue 1 year ago • 0 comments

Description

Completions are not properly ordered, as described in the proposed solution: https://github.com/ballerina-platform/ballerina-lang/issues/41636

image

Steps to Reproduce

Prompt completions for the cursor position below.

client class MyClass {
    resource function get First() {

    }

    resource function get First/[string second]() {

    }

    resource function get First/[string second]/Third() {

    }
}

function name() {
    MyClass myClass = new ();
    myClass->/<CURSOR>
}

Affected Version(s)

2201.9.0 test pack

OS, DB, other environment details and versions

OS: macOS 14.4.1 23E224 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 avatar Apr 15 '24 17:04 nipunayf