Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we get back folding on help sections? #3028

Open
Jaykul opened this issue Oct 24, 2020 · 3 comments
Open

Can we get back folding on help sections? #3028

Jaykul opened this issue Oct 24, 2020 · 3 comments
Labels
Area-Folding Issue-Enhancement A feature request (enhancement).

Comments

@Jaykul
Copy link

Jaykul commented Oct 24, 2020

Ever since the "syntax based" code folding was introduced
image

The documentation sections won't fold the way they used to:
image

Because the whole comment block is one big blob:
image

Can we add support for the comment-based help documentation keywords to fold the help below them?

P.S. When I turn that setting off, it completely kills folding for PowerShell files until I kill the integrated terminal.

@ghost ghost added the Needs: Triage Maintainer attention needed! label Oct 24, 2020
@SydneyhSmith SydneyhSmith added Area-Folding Issue-Enhancement A feature request (enhancement). and removed Needs: Triage Maintainer attention needed! labels Oct 27, 2020
@SydneyhSmith
Copy link
Collaborator

Thanks @Jaykul this is because the "non-syntax" based folding is purely indentation-based but this is a valid request

@Jaykul
Copy link
Author

Jaykul commented Nov 1, 2020

Oh yeah, I know it's just because I indent it to make it happen. 😉 I mean, I've been adjusting how I write code to take advantage of features in editors that don't really grok PowerShell since before we wrote a scintilla syntax for Notepad++ 😁 I'm sometimes ashamed of how many things I do just to keep the syntax highlighting working ... like putting quotes around strings even when they don't need it ...

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Nov 1, 2020
@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Nov 4, 2020
@fsackur
Copy link

fsackur commented Aug 5, 2022

My team enforces long help blocks at the top - my preference is to fold those windy regions and just read the code. I would love a feature like powershell.editor.foldHelpBlocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Folding Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

3 participants