waldo1001 / crs-al-language-extension

Make working with the (Dynamics NAV / 365) AL Language easier and more efficient.
MIT License
34 stars 42 forks source link

Feature Request: Specify custom paths with variables for AL Objects #297

Open cegekaJG opened 7 months ago

cegekaJG commented 7 months ago

Currently, the Reorganize action will only sort objects by their object type. It would be very useful if it was possible to specify the path used for sorting in the same way we can specify the name used for renaming extension objects.

In essence, the default path - assuming it is the same as it is now - would be <ObjectType>/<Filename>, but you could change it to something like <Prefix>/<ObjectTypeShortPascalCase>/<Filename>. It would be especially useful if it could read metadata such as a comment before the object definition (maybe a doc comment like /// <section>Sales</section>), which would allow for specifying subfolders in the object without affecting the code.

This feature would make reorganizing with custom source structure possible, and automate the management required.