Closed RadoArvay closed 6 months ago
Thanks for raising awareness of this issue. We will not have a solution for this in the near future, but in the next pre-release of the extension, you will be able to have Visual Studio Code to provide folding bases on their generic strategies, instead of getting them from the AL Language Extension.
When the region is defined and there is a pragma inside it and indentations of them are different, then it is not possible to fold the region or neither pragma itself. There are no folding icons or they are misplaced:
If I match the indentations, the region folding works:
But it is unable to fix it this way because "Format Document" command (manual or automatic during the save) updates indentations to initial state.
The behaviour is the same inside a code or inside an area like
fields
intable
object...Versions: