-
Notifications
You must be signed in to change notification settings - Fork 500
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
Unfolding not possible #1523
Comments
Thanks @aeschli and sorry @DarkLite1 for the running around. We'll look into this. |
I was able to repro this. cc'ing @glennsarti who worked on this feature :) I wonder if this is related to the fact that there is a |
Ahh ok...so overlapping ranges are a problem. Previous testing showed this wasn't the case. Okay...time to trim the ranges then! |
Repro'd locally myself too ... working on fix. |
@glennsarti thanks for jumping on this! You're the best 👍 |
Previously the syntax folder returned an ordered list of folding ranges which VS Code would "ignore" overlapping or duplicate ranges. However on manual testing, it showed that duplicate region did exist and could be folded/unfolded using the "Fold All" and "Unfold All" commands, but could NOT be manipulated manually in the editor using the +/- indicator. This commit adds a filter which removes any duplicate or overlapping regions which is easily detected via similar region start lines. This commit also adds a test for this scenario.
Previously the syntax folder returned an ordered list of folding ranges which VS Code would "ignore" overlapping or duplicate ranges. However on manual testing, it showed that duplicate region did exist and could be folded/unfolded using the "Fold All" and "Unfold All" commands, but could NOT be manipulated manually in the editor using the +/- indicator. This commit adds a filter which removes any duplicate or overlapping regions which is easily detected via similar region start lines. This commit also adds a test for this scenario.
@tylerl0706 Fix is up in PR 1525. Just waiting on green CI. |
@DarkLite1 Thanks for the issue report and providing an example script. Makes debugging SO much easier and faster bugfix turnaround! |
Previously the syntax folder returned an ordered list of folding ranges which VS Code would "ignore" overlapping or duplicate ranges. However on manual testing, it showed that duplicate region did exist and could be folded/unfolded using the "Fold All" and "Unfold All" commands, but could NOT be manipulated manually in the editor using the +/- indicator. This commit uses a filter which removes any duplicate or overlapping regions which is easily detected via similar region start lines. This commit also adds a test for this scenario.
You're welcome and thanks for the fast fix 👍 I just hope #1517 gets some TLC too, as this is a very very annoying one when working with HTML. But that's another topic. Thanks guys, really appreciate your help. |
Previously the syntax folder returned an ordered list of folding ranges which VS Code would "ignore" overlapping or duplicate ranges. However on manual testing, it showed that duplicate region did exist and could be folded/unfolded using the "Fold All" and "Unfold All" commands, but could NOT be manipulated manually in the editor using the +/- indicator. This commit uses a filter which removes any duplicate or overlapping regions which is easily detected via similar region start lines. This commit also adds a test for this scenario.
Previously the syntax folder returned an ordered list of folding ranges which VS Code would "ignore" overlapping or duplicate ranges. However on manual testing, it showed that duplicate region did exist and could be folded/unfolded using the "Fold All" and "Unfold All" commands, but could NOT be manipulated manually in the editor using the +/- indicator. This commit uses a filter which removes any duplicate or overlapping regions which is easily detected via similar region start lines. This commit also adds a test for this scenario.
From @DarkLite1 on September 11, 2018 6:53
Consider the following PowerShell file:
Test.ps1
Fold all
with the command paletteclick
theplus sign
to unfold, notice that unfolding is not possible with the mouse.Workarounds:
Unfold all
with the command palettte.$_.FullName -ne $DefaultsItem.FullName}).ForEach({
after theWhere
clause on the same lineCopied from original issue: microsoft/vscode#58414
The text was updated successfully, but these errors were encountered: