One of the most anoying things about writing AL code in Visual Studio Code is getting warnings that you cannot fix. Simply impossible.
My “favorite” warning is this one

For almost a decade it’s been possible to sort on flowfields from code and in reports and in most cases it works fine. On larger datasets it might require a covering index for performance.
This warning is a joke because it suggests to add a flowfield to the key’s. Even if it were a normal field; in extensions you cannot influence keys in Base Application anyway.
It’s recommended to fix this per project and to do this you need to add a settings.json file to your .vscode folder like this:

The content of this file should be something like this:
{ "name": "ForNAV", "description": "ForNAV Rules", "generalAction": "Hidden", "rules": [ { "id": "AL0432", "action": "Hidden", "justification": "Marked for removal, be careful with this rule…" }, { "id": "AL0254", "action": "Hidden", "justification": "Not possible to solve" },
1 Comment