Skip to content

Procedure decorators prevent proper XML comment parameter highlighting #8191

@MODUSCarstenScholling

Description

@MODUSCarstenScholling

1. Describe the bug
Method and procedure decorators cause parameters in XML comments to no longer be highlighted.

2. To Reproduce
Paste this into a VSCode AL file with AL Language activated and a project loaded.

codeunit 12345 "M365 Lala"
{
    /// <summary>
    /// The event is raised after the sales document is modified.
    /// </summary>
    /// <param name="salesHeader">A record of the Sales Header table.</param>
    /// <param name="salesLine">A reference to the Sales Line table.</param>
    [IntegrationEvent(true, false)]
    local procedure OnAfterModifySales(salesHeader: Record "Sales Header"; var salesLine: Record "Sales Line")
    begin
    end;

    /// <summary>
    /// Modify the sales document.
    /// </summary>
    /// <param name="salesHeader">A record of the Sales Header table.</param>
    /// <param name="salesLine">A reference to the Sales Line table.</param>
    [NonDebuggable]
    local procedure ModifySalesTake2(salesHeader: Record "Sales Header"; var salesLine: Record "Sales Line")
    begin
    end;

    /// <summary>
    /// The event is raised after the production order line is modified.
    /// </summary>
    /// <param name="salesHeader">A record of the Sales Header table.</param>
    /// <param name="salesLine">A reference to the Sales Line table.</param>
    local procedure RaiseOnAfterModifySales(salesHeader: Record "Sales Header"; var salesLine: Record "Sales Line")
    begin
        OnAfterModifySales(salesHeader, salesLine);
    end;
}
Image

3. Expected behavior
Parameters salesHeader and salesLine should be highlighted for every procedure, even with decorators.

4. Actual behavior
Decorators causing the XML comments to not highlight the parameters.

5. Versions:

  • AL Language: 17.0.2037090
  • Visual Studio Code: 1.108.1
  • Business Central: 27.0
  • List of Visual Studio Code extensions that you have installed: ms-dynamics-smb.al
  • Operating System:
    • Windows
    • Linux
    • MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions