-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Cannot fold code #13
Comments
Hey Gamma, ive been trying to reproduce this bug with some other people and it seems to happen for about half of them (excluding me). I'll be looking into a fix for this issue, however it would be great if you could share some more setup details (e.g. operating system, extension version, CA settings, etc.) and see if this happens in other files as well. Thanks again! |
Hello there, With some quick testing, typescript and JavaScript files don't have the bug. But when I change the file type to C#, PHP or java the bug appears. Also, when I change the file type from for example java to JavaScript the bug persists until I make a change after which the bug disappears. |
After some more testing I can conclude folding is absolutely buggered in both C# and Java, works flawlessly in JavaScript and TypeScript, but only works in Python without Comment Anchors. Since I'm doing nothing out of the ordinary (simply registering one fold provider) this can only be an issue related to the specific language extensions or VS Code itself. Since I'm unable to solve this issue, I'll instead implement a setting to disable folding instead. Hopefully this will still resolve your issues! |
That's really weird! I wonder if it's an issue with vsc and if it should be reported. I don't really need anchor folding, so a setting would work well for me. Thank you! |
Alright, the setting will be available in the next release. I've tested it with python and can confirm it fixes language folding |
Seems to be working great, thank you 👍 |
One of the recent updates broke the folding
The text was updated successfully, but these errors were encountered: