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

[New Feature]: Introduce a new code action to add arguments to match an existing function

Open mindula opened this issue 2 years ago • 0 comments

Description

Implement a new code action Add arguments to match "functionName(param1, param2)" to insert default values for any missing arguments. This is similar to the Fill "RecordName" required fields code action.

Before

public function main() {
    getFullName()
}

function getFullName(string firstName, string lastName) returns string {
    return firstName + lastName;
}

After

public function main() {
    getFullName("", "")
}

function getFullName(string firstName, string lastName) returns string {
    return firstName + lastName;
}

Describe your problem(s)

No response

Describe your solution(s)

No response

Related area

-> Editor

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

mindula avatar Jun 14 '23 07:06 mindula