Closed fvet closed 3 years ago
Hi Frédéric, thanks for your detailed issue. I think I have to re-read this one again to get it in detail, but nevertheless I would like to briefly share my first impression after skimming the issue. Do you know the possibility to create overloads of procedures if you're calling that procedure? If you didn't know it yet, is that enough for your scenarios? https://github.com/DavidFeldhoff/al-codeactions#create-overload
Hi @DavidFeldhoff
I was not aware of the current 'Create Overload' action. My point of view was mainly starting from the function declaration itself, where yours is starting from the place where the function is called (already having the required context of new variables + datatypes). I'll give it a try and think it will cover my needs !!
Thanks ;)
I guess it covers your needs as I didn't hear anything again and instead you created issues for the existing functionalities, so I'll close this one. Feel free to reopen if I misinterpreted the situation.
Suppose, function with 4 arguments + code
I'd like to create an overload functions with a new 'AdditionalRemarks' parameter. Expected result:
The code action should:
PS: Ideally, we'd run the https://github.com/DavidFeldhoff/al-codeactions/issues/116 first to have clean function parameters.
Copy result should be
pcodAlertID, pvarSourceRecord, ptxtMessage, pintPageID
This could already help us in calling the new procedure with the same parameters