Skip to content

Folding: Allow option to leave closing brace line visible #1514

Closed
@RussPitcher

Description

@RussPitcher

Summary of the new feature

As a user I want an option for brace-delimited code folding regions to leave the closing brace visible when the region is folded.

The current folding behaviour of VSCode with the PowerShell folding provider disabled leaves the opening and closing lines visible and folds the code in the contained lines.
image

With the PowerShell syntax-aware folding enabled the last line is also collapsed into the fold.
image
This means that any subsequent code blocks in the same construct are hidden and this obscures the code structure too much.

Would it be possible to either change the folding to match the default behaviour of VSCode indent-based folding or, preferably, add an option to allow a choice of behaviour?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions