20
Intellisense shows all the possible overloads for a method - which is great.

What would be even more great would be if it automatically selected the appropriate overload to show in the intellisense e.g.

procedure SomeMethod(X: Integer) - overload 1

procedure SomeMethod(X: Integer; Y: Integer; Z: Integer) - overload 2

When calling SomeMethod the first overload seems to always be shown in intellisense. Once I've entered a comma in the call it would be great to automatically switch to the next overload that I might be calling

SomeMethod(1,

Having entered the comma for a second parameter I cannot now be calling overload 1, so show overload 2 in the intellisense instead.
Category: Development
STATUS DETAILS
Planned
2023 Release Wave 2
Ideas Administrator

Thank you for this suggestion! We are addressing this in 2023 release wave 2. The AL Language extension will now reorder and prioritize relevant overloads when the developer starts typing a method invocation. If the typed expression corresponds to a valid overload, it will always be the first recommendation and the correct active parameter will be highlighted. The rest of the recommendations will be sorted in the order of relevance based on the provided parameters.

Best regards,
Business Central Team

Comments

J

Or show them in the popup, with a counter how many overloads there are and an option to click through the available overloads.

Category: Development