BartPermentier / al-toolbox

Adds Features to the AL Language Extension
MIT License
13 stars 9 forks source link

Multiple level regions #4

Closed f4n0 closed 3 years ago

f4n0 commented 5 years ago

Hi, it will be very helpful if the regions could be multi-levels like this:

//#region Level1
     //#region Level2

     //#endregion Level2
//#endregion Level1

Let me know if it is possible Stefano

BartPermentier commented 5 years ago

Hey,

I looked into it but didn't find a way to achieve this. But my scripting skills are very limited since I'm just an AL developer... Anyone is welcome to contribute if you find someone with more experience to achieve this :) Sorry I can't help you!

NKarolak commented 4 years ago

This feature is working for me, so probably this issue could be closed?

f4n0 commented 4 years ago

I'm sorry but I don't think so. The missing feature I think is the indentation, with this it could be a lot better

NKarolak commented 4 years ago

Ah, then I clearly misunderstood, sorry!

f4n0 commented 4 years ago

No worries, it was a bit cryptic as a GitHub issue!

BartPermentier commented 3 years ago

We decided not to do this change since Microsoft now also uses Regions and we don't want to put more stress on the AL formatter. You could use https://marketplace.visualstudio.com/items?itemName=mihelcic.colored-regions to give different colors to your regions. Hope it helps :)