You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched all issues to ensure it has not already been reported.
Summary
Outline pane in vscode should also include / support #region blocks in Powershell.
Outline is a great tool for navigating hundreds of lines. If there are hundred of lines the Powershell Developer utilises region of code blocks using the #region / #endregion blocks to navigate easier. If this is implemented in the outline it will add a lot value to the PowerShell developer.
Oh that's a great idea! Do you know what it would look like? I'm going to mark this as up for grabs because I'd happily take a PR that enabled it, but am unsure of when I'd be able to get to it myself.
Hi Emre Guclu (@emrgcl) and Andy Jordan (@andschwa). AFAIK the outline view actually comes from the Document/Symbol request to the PowerShell Editor Services. I think it would be possible to add this for regions (I actually implemented the code-folding for regions previously) using the existing token operations code.
Activity
andyleejordan commentedon Oct 5, 2021
Oh that's a great idea! Do you know what it would look like? I'm going to mark this as up for grabs because I'd happily take a PR that enabled it, but am unsure of when I'd be able to get to it myself.
glennsarti commentedon Oct 7, 2021
Hi Emre Guclu (@emrgcl) and Andy Jordan (@andschwa). AFAIK the outline view actually comes from the Document/Symbol request to the PowerShell Editor Services. I think it would be possible to add this for regions (I actually implemented the code-folding for regions previously) using the existing token operations code.