If a procedure returns nothing, or a basic type,
- starting to type
begin for its body gets us this suggestion, and
- pressing Enter creates the correct/expected result:

However, if the procedure returns a record, and has already specified which record it's returning, this does not work...
- we get the
beginend; auto-filled, but
- the suggestion is instead for some random tables that contain isolated letters from the word
begin... and
- pressing Enter causes the name of the first suggested table to be inserted, replacing the desired
begin/end;.

So, we
- get an arbitrary wrong thing inserted instead of what we wanted, and
- have to delete that, and
- start again, making sure not to accept the
beginend; suggestion
...which adds a fair number of seconds, and more frustration, to the should-be-simple task of declaring a procedure. :-(
This is very inconvenient when returning records, something that is otherwise a great and really useful new feature :-) So please can it be fixed?
Thanks!
Name: AL Language
Id: ms-dynamics-smb.al
Description: AL development tools for Dynamics 365 Business Central
Version: 8.4.586670
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al
If a procedure returns nothing, or a basic type,
beginfor its body gets us this suggestion, andHowever, if the procedure returns a record, and has already specified which record it's returning, this does not work...
beginend;auto-filled, butbegin... andbegin/end;.So, we
beginend;suggestion...which adds a fair number of seconds, and more frustration, to the should-be-simple task of declaring a procedure. :-(
This is very inconvenient when returning records, something that is otherwise a great and really useful new feature :-) So please can it be fixed?
Thanks!