A Visual Studio Code extension that integrates ALCops analyzers for the AL programming language in Microsoft Dynamics 365 Business Central.
- Visual Studio Code: Version 1.60.0 or later
- AL Language Extension: The official Microsoft AL Language extension for Business Central (version 12.0.875970 or later)
- Install the ALCops extension from the VS Code Marketplace
- The extension will automatically download the ALCops analyzers on first use
- Open an AL project in VS Code
- Configure analyzer settings in your VS Code workspace settings as needed
This extension contributes the following settings:
alcops.automaticUpdates(boolean): Automatically check for updates when VS Code starts. Updates follow the selected Version Channel. (default:true)alcops.updateNotification(string): How to handle available updates. Options:auto-install,notify-only,manual. (default:notify-only)alcops.versionChannel(string): Select which release versions to receive. Options:stable,beta,alpha. (default:stable)alcops.checkUpdateInterval(number): Hours between automatic update checks. Range: 1-720 hours. (default:24)
Configure these settings in your VS Code settings.json:
{
"alcops.automaticUpdates": true,
"alcops.updateNotification": "notify-only",
"alcops.versionChannel": "stable",
"alcops.checkUpdateInterval": 24
}- First-time setup may take a few moments while analyzers are downloaded
- Some analyzer rules may require specific Business Central versions
Please report any issues on the GitHub repository.
The ALCops extension simplifies analyzer management through an automated lifecycle:
-
Activation: When VS Code starts, the extension automatically activates and checks for existing ALCops analyzers in the AL Language extension's bin/Analyzers folder.
-
Version Management: The extension tracks the currently installed ALCops version and compares it against the available versions based on your selected version channel (stable, beta, or alpha).
-
Background Monitoring: Periodically checks for new updates at the interval you specify in
alcops.checkUpdateInterval(default: 24 hours). -
Smart Updates: Based on your
updateNotificationsetting, the extension either:- Automatically downloads and installs updates (
auto-install) - Notifies you when updates are available (
notify-only) - Waits for your manual command to update (
manual)
- Automatically downloads and installs updates (
-
Pending Installation Check: The extension checks if there's a pending installation from a previous update. If found, it completes the installation and notifies you upon success.
-
User Control: You can manually check for updates or trigger installation at any time using the ALCops commands in the VS Code command palette.
Contributions are welcome! Please feel free to submit issues or pull requests to improve the extension.
This extension is licensed under the MIT License. See the LICENSE file for details.