Skip to content

Region / EndRegion not in line with PowerShell ISE #14173

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
cjvanderlinden opened this issue Oct 21, 2016 · 1 comment
Closed

Region / EndRegion not in line with PowerShell ISE #14173

cjvanderlinden opened this issue Oct 21, 2016 · 1 comment
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@cjvanderlinden
Copy link

  • VSCode Version: 1.6.1
  • OS Version: Windows 7 Pro
  • PowerShell Version: v5

Steps to Reproduce:

  1. create #Region and #EndRegion tags at the same column tab
  2. put code between region tags and make sure they line up at the same column tab
  3. VSCode does not allow you to expand or collapse code between region tags when the code between the tags line up with the region tags themselves (where as it does allow you to collapse in PowerShell ISE).

Example:
image

based on the final example in screenshot above, it seems like region tagging isn't even working, and just seems to be working due to VSCode's default settings

@roblourens
Copy link
Member

Code folding is just based on indentation, it's not actually looking at the region tags. #12146

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 21, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants