Home > Enterprise >  Can no longer fold python dictionaries in VS Code
Can no longer fold python dictionaries in VS Code

Time:01-15

I used to be able to collapse (fold) python dictionaries just fine in my VS Code. Randomly I am not able to do that anymore. I can still fold classes and functions just fine, but dictionaries cannot fold, the arrow on the left hand side just isn't there. I've checked my settings but I can't figure out what would've changed. I'm not sure the best forum to go to for help, so I'm hoping this is ok. Any ideas?

CodePudding user response:

With the help of yoonghm's comment, I found out it was the Pylance by Microsoft extension causing the issue.

CodePudding user response:

It's caused by Pylance v2022.1.1. Use v2022.1.0 instead.

  •  Tags:  
  • Related