microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
728 stars 241 forks source link

Azure DevOps Syntax Highlithing - Wrong Highliting of KeyWords like Separator in procedures parameters #7617

Closed pri-kise closed 7 months ago

pri-kise commented 8 months ago

1. Describe the bug Create a procedure with ParameterName with Name Separator and view this file in Azure Devops

2. To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
procedure CreateString(Separator: Text)  //Wrong Hightlithing in Azure DevOps
begin
end;

3. Expected behavior KeyWords in parameter Names should be ignored similiar to VS-Code: image

4. Versions:

mjmatthiesen commented 8 months ago

What are you using for highlighting within Azure DevOps?

dannoe commented 8 months ago

What are you using for highlighting within Azure DevOps?

Should be https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.allanghighlights

KeyWords in parameter Names should be ignored similiar to VS-Code:

I think that this is not solvable by the app as the same happens for keywords in C# (and perhaps other languages too?). Possibly a problem with the highlighting engine/editor.

EmilDamsbo commented 7 months ago

Hello, this difference is due to the presence of semantic highlighting in the Visual Studio Code extension. To illustrate: image image

We strive to make the Azure DevOps extension have parity with VS Code extension syntax highlighting, Unfortunately Azure DevOps doesn't support semantic highlighting, this the gap you are experiencing. Hope this helped.

Thank you for reporting the issue, but as we cannot solve it so I am closing as not planned. Have a nice day!