Skip to content

Incorrect Symbols Displayed in VS Code #659

@iti-konrad-jasinski

Description

@iti-konrad-jasinski

Summary
The code displayed from AL symbols in Visual Studio Code does not match the actual source code of the corresponding .app file. Symbols from a newer Business Central version (BC 27.0) are shown when inspecting an older version (BC 26.8).

Issue Description
I encountered an issue where the code shown via AL symbols in Visual Studio Code (using AZ AL Dev Tools) differs from the code contained in the actual .app file.

When inspecting symbols, Visual Studio Code displays code that corresponds to Business Central 27.0, even though Business Central 26.8 symbols were selected and opened.

This was verified by:

Unzipping and inspecting the .app file for BC 26.8

Comparing against the base application source code in the GitHub repository

Concrete Example

Object: Codeunit 1530 "Request Page Parameters Helper"

Function: ConvertParametersToFilters

Expected (BC 26.8): Original implementation

Actual (displayed in symbols): Updated implementation introduced in BC 27.0

The function ConvertParametersToFilters was changed in BC 27.0, but the symbol view for BC 26.8 already shows this updated version, which does not match the real BC 26.8 source code.

Additional Observations

Symbols for BC 27.0 were also present locally.

I am confident that the BC 26.8 symbol file was opened.

A colleague experienced the same issue when inspecting other versions; symbols from BC 27.0 were shown instead of the selected version.

Environment

AZ AL Dev Tools / AL Code Outline: 16.78.0

Visual Studio Code: 1.107.0

Expected Behavior
VS Code should display the exact source code that matches the selected Business Central symbol version.

Actual Behavior
VS Code displays code from a newer Business Central version (BC 27.0) when viewing symbols for an older version (BC 26.8).

Impact
This can lead to incorrect assumptions about available functionality, version-specific behavior, and may cause development issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions