Open plmcgrn opened 3 weeks ago
Thanks for the submission! It's certainly something we should look into in terms of the grammar, because the standard with other languages appears to fold that end part inwards. At the very least we should have a configurable option ideally if it's not a hard-baked grammar rule thing.
Javascript Example:
Prerequisites
Summary
When using
#region
and#endregion
in developing PowerShell code, there is a difference in how code collapse works in ISE vs. VS Code. In ISE, collapsing a region will also hide theendregion
line. In VS Code, it will not. This leads to extraneough lines when trying to collapse all regions for easier code viewing.PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Write a region in a PowerShell script within VS Code, example:
When collapsing the region, it will show two lines, not 1
Visuals
Logs
No response