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
732 stars 243 forks source link

Syntax Highlithing does not work in the Preview of Changes for all files [AL Language Syntax Highlights - Azure DevOps] #7530

Closed pri-kise closed 11 months ago

pri-kise commented 11 months ago

1. Describe the bug Currently the Syntax Highlighting isn't applied in the preview of the changes of a PR. Only when I select one specific file, then I'm getting the syntax hightlighting

2. To Reproduce Steps to reproduce the behavior:

  1. Install the extension https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.allanghighlights for DevOps
  2. Create a PR with multiple .al files.
  3. There is not syntax highlighting

image

3. Versions:

pri-kise commented 11 months ago

it could be that this isn't related to the AL Language. Maybe this is a general Azure DevOps issue. I wasn't able to find any other documentation on this topic. https://www.reddit.com/r/azuredevops/comments/sxpogh/syntax_highlighting_in_diff_view/

EmilDamsbo commented 11 months ago

Hi, thanks for being an early adopter of the AL Syntax Highlighting extension for Azure DevOps. We appreciate your feedback, unfortunately this is a limitation in the Azure DevOps product as you mentioned. This behaviour is no different from the preview for other languages like C# or Java in the same context. To get syntax highlighting, you can click the files in the left-side pane of the Files tab: image

image

I hope this helps!

pri-kise commented 11 months ago

@EmilDamsbo you have any kind of official documentation, that this is a limitation of azure DevOps? I really searched through the web, but couldn't find any reference.

If this is a limitation of Azure DevOps, then I will close this issue an open an Idea for Azure DevOps

pri-kise commented 11 months ago

I created an idea now for azure devops https://developercommunity.visualstudio.com/t/Add-syntax-highlighting-for-the-diff-vie/10483974

EmilDamsbo commented 11 months ago

I have not found it documented anywhere, but the behaviour is exhibited for all languages I have tried in Azure DevOps in the webclient. I upvoted your idea too :)