Closed w3bward closed 4 years ago
Thanks for the report and the great examples! I'm sure this will be a relatively simple fix. I'll post back here when I have an updated version ready to be deployed.
Version 1.1.4 is now live on the marketplace and should resolve the reported issue. Feel free to reopen this issue if that is not the case for you locally.
It looks like that fixed it. Thank you for the incredibly quick support!
Describe the bug When using the
#region
and#endregion
directives in Visual Studio Code, the first#region
folds to the last#endregion
, custom regions defined with the region/endregion directives between the first and last region/endregion directives are not collapsible.For kicks, I decided to see what would happen if I stuck an orphaned
//#endregion
at some point after a defined region, and to my surprise it did not fold to the orphaned//#endregion
without an accompanying//#region
(see Examples 2 & 3).To Reproduce Steps to reproduce the behavior:
//#region
and//#endregion
//#endregion
, surround another block of code in//#region
and//#endregion
//#region
Example 1:
Example 2:
Example 3:
Expected behavior A region directive should fold to the next endregion directive, and multiple directive defined regions within a script should be functional
Editor (please complete the following information):