Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>C/AL WorkbenchNew to Visual Studio Code? Get it now.
C/AL Workbench

C/AL Workbench

Preview

Timo Beermann

|
5 installs
| (0) | Free
Agent-friendly static analysis for C/AL (Navision 4.0 – NAV 2018): find compile errors in your text exports in VS Code before importing them into C/SIDE.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C/AL Workbench

Find C/AL compile errors in VS Code — before you import your objects into the Classic client.

C/AL Workbench brings static analysis and language features for C/AL text exports (Navision 4.0 to Dynamics NAV 2018) to VS Code. It is built for agent-assisted C/AL development: you or an AI agent (GitHub Copilot CLI, Claude Code, …) edit the exported .txt objects in VS Code, and C/AL Workbench reports syntax errors, unknown fields and procedures, wrong argument counts and more — instead of finding out only when C/SIDE imports and compiles the objects.

No NAV database, no NAV installation and no network connection are needed.

Not a full compiler. C/AL Workbench finds many compile errors early, but not all of them, and it can occasionally report code that does compile. Always import and compile in C/SIDE before you release. Please report wrong or missing findings on GitHub — a short, anonymised code snippet helps most.

Features

In the editor (for you)

  • Live diagnostics while typing in the Problems view — syntax, unknown fields/procedures/methods, TableRelation targets and filter fields, argument counts, VAR arguments, option members, literals, array indexing, LOCAL procedures, EXIT values.
  • Hover, Go to Definition, Find All References and the outline across all object types (tables, forms, pages, reports, dataports, XMLports, codeunits, queries).
  • Completion (variables, fields, methods, option values after ::, objects after DATABASE::), signature help, semantic highlighting, folding.
  • Encoding protection: exports are read in their code page (CP850 or CP1252); characters that cannot be saved are flagged before you lose them, UTF-8 files are reported.
  • Optional rule sets (cops) with presets and a project ruleset, a baseline for known findings, a project overview and a status bar entry.

On the command line (for agents, scripts and CI)

  • The bundled CLI calcheck is available in every VS Code integrated terminal — so an agent running there can call calcheck check as its build gate.
  • Output in the problem-matcher format file(line,col): error CAL0101: … or as JSON, exit code 1 on errors.
  • calcheck check --files <changed files> checks only what changed and still resolves references to the rest of the project.

Getting started

  1. Open the folder with your C/SIDE text exports (TAB*.txt, COD*.txt, …).
  2. F1 → C/AL: Create calconfig.json (set up project): choose the NAV version (e.g. Navision 4.0 SP3) and the code page (CP850 is the C/SIDE default). The file is shown as a preview first.
  3. Open any object: diagnostics appear in Problems. F1 → C/AL: Check project checks everything.
  4. For agents: open a terminal in VS Code and run calcheck check (Node.js 22.12+ required).

Which part is for whom

You in VS Code AI agents (Copilot CLI, Claude Code, …), CI
Live diagnostics, hover, navigation, completion ✓ via the language server (optional)
F1 commands C/AL: …, tasks calcheck: check/build ✓ ✗ (agents cannot use them)
calcheck check / build / rules / baseline in the terminal ✓ ✓ — the agent interface

Agent guide with ready-to-paste instructions: docs/agents.md · CLI reference: docs/cli.md.

Commands

Command (F1) Purpose
C/AL: Create calconfig.json (set up project) Create the project configuration with preview.
C/AL: Check project · Build project · Rebuild project completely Analyse all files; build also writes symbol packages and a build report.
C/AL: Open project overview Profile, encoding, sources, rules, last run, analysis limits.
C/AL: Configure analyzers · Configure rule · Open ruleset Optional cops, presets and rule actions.
C/AL: Create symbol packages · Rebuild symbol packages · Show symbol status Symbol packages in .calpackages/.
C/AL: Use calcheck as default build task Adds calcheck: build to tasks.json (Ctrl+Shift+B).
C/AL: Copy calcheck command line Command line for agents running outside VS Code.

Settings

Setting Default Meaning
calWorkbench.liveAnalysis.debounceMs 300 Delay before live analysis runs after an edit.
calWorkbench.statusBar.enabled true Show the project state in the status bar.
calWorkbench.cli.addToTerminalPath true Put calcheck on the PATH of integrated terminals.

Project settings live in calconfig.json (validated by a JSON schema): target version, source globs, code page, rules, baseline and platform.objects for objects that exist in the database but not in the export. Reference: docs/cli.md.

Supported versions

Navision 4.0 / 4.0 SP3 and Dynamics NAV 5.0 / 5.0 SP1 (Classic), Dynamics NAV 2009 – 2018. The analysis is version-aware (object types, data types, events). This is a preview: no version is marked as tested against real customer exports yet — see the compatibility matrix.

Privacy and safety

Everything runs locally. Source files are never modified by the analysis. Generated folders (.calpackages/, .calbuild/) contain object names and signatures — keep them out of public artifacts. In untrusted workspaces the extension only reads.

Feedback

Bugs, false positives and missing checks: github.com/TimBee706/C-AL_VS_Code_Analyzer/issues. License: MIT.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft