Open ivanlen opened 3 days ago
Fold
will collapse the folding range that is at or around the current cursor position.
You can see the folding ranges when hovering over the line numbers.
If you don't see any ranges it could be the language server has not returned any. Maybe a syntax error?
Hey @aeschli Thanks for the answer. Yes I can see the ranges:
Is there any log that should provide some info about this that I can check to try to debug the issue. Since it is working for other language and not for python there must be something there.
I can try to see the logs for other languages and compare them with python for example. Maybe you have a better idea.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce: "Fold All" and "Unfold All" shortcuts work. They also work if I launch them from Shift+Ctrl+P and write (un)fold All. However when I select a piece of code in the editor and then try to just "Fold" or "Unfold" it is not working.
I tried Pylance and Jedi python servers, and with both of them I am having the same problem. Also by lanuching vscode with all extensions disabled.
In the Python Language Server output there are no errors or warnings.
Note that this is only happening in python, in json, js other languages it is working fine.
settings.json related to python