You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by Roffelkopter5 September 12, 2022
I have a Python class with a lot of diffrent methods, wich I want to group into regions. For the first 5 regions the folding works perfectly normal, but after the the region PROPERTIES it just stops working.
Here is a stripped down version of my code.
# Bunch of importsclassSprite:
def__init__(self):
...
# region MOTIONdefchange_pos(self):
...
# Some other functionsdefbounce_on_edge(self):
...
# endregion# region LOOKSdefset_image(self):
...
# Some other functionsdefshow(self):
...
# endregion# region EVENTSdefon_key(self):
...
# Some other functionsdefclone(self):
...
# endregion# region CONTROLSdefwait(self):
...
# Some other functionsdefrepeat_until(self):
...
# endregion# region PROPERTIES@propertydefimage(self):
...
# Some other functions@propertydefname(self):
...
# endregion# region PRIVATEdef_update(self):
...
# Some other methodsdef_scale_and_rotate(self):
...
# endregion
After further testing I noticed, that the problem does not occur espacially at the fith region, but on the last one. And the nature of the problem seems to lie in the fact that the region only contains indented Code. I don't know if this behaviour is intentional, or if there's an easy fix for it, but it's kind of annoying not being able to collapse the last region.
I hope I described the problem clearly and that my english is not too bad :)
The text was updated successfully, but these errors were encountered:
Discussed in microsoft/vscode-python#19815
Originally posted by Roffelkopter5 September 12, 2022
I have a Python class with a lot of diffrent methods, wich I want to group into regions. For the first 5 regions the folding works perfectly normal, but after the the region PROPERTIES it just stops working.
Here is a stripped down version of my code.
After further testing I noticed, that the problem does not occur espacially at the fith region, but on the last one. And the nature of the problem seems to lie in the fact that the region only contains indented Code. I don't know if this behaviour is intentional, or if there's an easy fix for it, but it's kind of annoying not being able to collapse the last region.
I hope I described the problem clearly and that my english is not too bad :)
The text was updated successfully, but these errors were encountered: