It would be nice if the code analyzers would get a performance boost or it would not remove the issues immediately and update the issue in the background. Like Visual Studio.

All warnings and errors of your AL Extension will be shown in the “Problems” tab in Visual Studio Code. If you click on one of the entries, you will be transferred to the line that causes this issue. But this error disappears both in the that “Problem” tab and squiggly line in the Code Viewer itself. If you change one line in this file all other warnings and errors also disappear, even if you don’t save.

This is annoying if you what to fix a lot of errors after upgrading your solution from C/SIDE via txt2al.

There is a very old discussion on github https://github.com/microsoft/AL/issues/732, but nothing improved since then. So, the suggestion was to create an idea.
Category: Development
2023 Release Wave 1
Ideas Administrator

Thank you for your feedback. We have made some improvements in the code analyzer framework this release to help address above:
  • General performance improvements and bug fixes
  • Introduction of a new file scope to only run analyzers on the current file while editing. Rules still run on larger scope on full build 
  • New verbosity view to get insights into the performance of each rule, e.g., to provide feedback to us or to disable bad performing rules (temporarily or in to only run in CICD and not interactive code authoring).
Above is already available in the insider build, and will be in preview as well, so you can try it out

With above changes, we will mark this idea as planned.

Best regards,
Business Central Team