Foreach loop variable deconstruction suggestion
Before some event (probably update of Rider, changing some settings, but I'm not sure) Rider stopped to ask for deconstruction of loop variable. How to get it back?
## Before:
1. type some expression that resolves to a Dictionary type
2. type `.foreach` and press enter
3. Rider shows dropdown with two options: “deconstruct loop variable” and “do not deconstruct loop variable”
4. If selected, then loop code generated with deconstructed loop variable or not, depends on choice.
## After:
1. type some expression that resolves to a Dictionary type
2. type `.foreach` and press enter
3. loop code generated without loop variable deconstruction.
The behavior before was very handy. How to get it back? I checked different config options that I probably could change, but can't get it back.
Please sign in to leave a comment.
Kkolyankkolyan,
Thank you for reporting the issue. I've reproduced this behavior in a testing environment and filed a corresponding issue RIDER-131861 Deconstruction suggestion in "foreach" postfix template is missing if "Code with Me" is enabled (patch engine)
As a workaround, please use Tools→Disable Code With Me and Restart and let me know if the issue persists.