Skip to content

VS Code extension for AL to quickly identify functions that could be local

Notifications You must be signed in to change notification settings

mjmatthiesen/localize-lens

Repository files navigation

Localize Lens

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.

Features

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.

Requirements

The extension works based on the symbols and references provided by the AL Language. I cannot predict behaviour with this.

Installation

Install through Visual Studio Code Marketplace. The extension is called "Localize Lens".

It supports the following file extensions: .al

Extension Settings

None.

Known Issues

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.

Release Notes

1.0.0

Initial release.

Acknowledgements

This extension was only possible because I used the following as a reference:

About

VS Code extension for AL to quickly identify functions that could be local

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published