Localize Lens is an extension for the AL language. It exists to help with code refactoring. It uses the language implemented symbols and references to verify if a function should be local or not.
Localize Lens adds a secondary code lens to procedures that are global. It identifies if a function could be local, i.e. it lacks external references.
It has a quick action that can add a local identifier to the procedure.
The extension works based on the symbols and references provided by the AL Language. I cannot predict behaviour with this.
Install through Visual Studio Code Marketplace. The extension is called "Localize Lens".
It supports the following file extensions: .al
None.
To provide the code lenses with sufficient speed, the following two issues are moved to the resolution of it instead, and as such, are limitations:
- Procedures with no references will receive a marker.
- Global procedures with external references will receive a marker.
Initial release.
This extension was only possible because I used the following as a reference: