Skip to content

Indented #region does not work beyond 7 spaces #157

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

Closed
johlju opened this issue Apr 23, 2016 · 1 comment
Closed

Indented #region does not work beyond 7 spaces #157

johlju opened this issue Apr 23, 2016 · 1 comment

Comments

@johlju
Copy link

johlju commented Apr 23, 2016

If the #region tag (the # character) is present withing the first 8 characters on a new line, the #region gives you a minus sign to collapse the region. But beyond 8 it does not. I'm using spaces instead of tabs for indent. I have not tested if the same problem exist when using tabs.

# This work
function Get-Something {
    if (condition) {
       #region My region test
        Write-Information "Test #Region"
       #endregion My region test
    }
}

# This does not work
function Get-Something {
    if (condition) {
        #region My region test
        Write-Information "Test #Region"
        #endregion My region test
    }
}
@rkeithhill
Copy link
Contributor

Code folding is purely a VSCode feature at this point based upon indentation and nothing else. There is no support for language participation in code folding. See this VSCode issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants