Al: Suggestion: Handle comments per function

Created on 7 Apr 2017  路  11Comments  路  Source: microsoft/AL

IntelliSense for functions could be more efficient if we had a way to insert comments for that function that are then shown directtly in the IntelliSense output. This is something from the .NET-world that is quite useful.

al-docs suggestion

Most helpful comment

Are you going to use the same xml comments format that we can use with c#? I've managed to add partial support for xml comments and code snippets to the current Nav Development Environment, so I can imagine that we could use the same DocFX template for old C/AL and new AL in the future and use 2 different tools to generate metadata from source code. Both development environments are going to exists together for some period of time, so it would be nice if my extension uses the same xml comments format that you will implement in VS Code and it would also be nice if txt2al could remove these comment from the begining of procedure body and put them back at the top of procedure header. Obviously you have plenty of other, much more important tasks and issues to solve, so this one has very low priority, but AL code is going to be much more "closed" in the future, so it would be good if we start thinking about better documentation for developers.
I am going to publish results of my experiments with DocFX templates and plugins on github, so anybody interested can take a look at it

documentation

All 11 comments

This is something that we have in the plans for the future, but we are currently working on areas with higher priority. Just be patient:-)

Thanks, I will :-)

It would also be nice to have something like the ObsoleteState and ObsoleteReason property introduced lately for table fields in C/AL also as maybe an annotation for any object, field or function in AL. That way we could find out if something in standard NAV or an extension we depend on is to be removed

ObsoleteState and ObsoleteReason will be surfaced for tables, fields, and keys in AL soon. We are planning to expand this to cover more functionality in the future.

Are you going to use the same xml comments format that we can use with c#? I've managed to add partial support for xml comments and code snippets to the current Nav Development Environment, so I can imagine that we could use the same DocFX template for old C/AL and new AL in the future and use 2 different tools to generate metadata from source code. Both development environments are going to exists together for some period of time, so it would be nice if my extension uses the same xml comments format that you will implement in VS Code and it would also be nice if txt2al could remove these comment from the begining of procedure body and put them back at the top of procedure header. Obviously you have plenty of other, much more important tasks and issues to solve, so this one has very low priority, but AL code is going to be much more "closed" in the future, so it would be good if we start thinking about better documentation for developers.
I am going to publish results of my experiments with DocFX templates and plugins on github, so anybody interested can take a look at it

documentation

This will be an essential feature

Are there any news on this topic by now?

No. It is still in our plans but we don't have a timeline for it.

Hi @esbenk,
particularly, I would prefer a documentation syntax that is much more modern and less verbose than that based on XML ... something like this:

image

To be used here:

image

... and here, because is more useful info about the remote parameter than about the local variable we are using:

image

It is something like this that we are planning to implement.

This has landed already, right? So it can be closed I'd think.

BC17 Launch Event video, which starts on this at around 45 minutes in:
https://events1.social27.com/MSDyn365BCLaunchEvent/agenda/player/61355

example doc comments:
image

example Intellisense result:
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThomasBrodkorb picture ThomasBrodkorb  路  3Comments

AndersMad picture AndersMad  路  3Comments

worldofthenavcraft picture worldofthenavcraft  路  3Comments

SteveKrisjanovsD365 picture SteveKrisjanovsD365  路  3Comments

AddEleven picture AddEleven  路  3Comments