ballerina-lang
ballerina-lang copied to clipboard
[New Feature]: Introduce a new code action to add arguments to match an existing function
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