DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.3k stars 735 forks source link

Dioxus vscode extension messes up the code during reformatting #2252

Closed umnovI closed 2 months ago

umnovI commented 2 months ago

Problem

Dioxus vscode extension removes key keyword from iterator. I'm not sure if this is a correct behavior, but based on this part of documentation https://dioxuslabs.com/learn/0.5/cookbook/antipatterns#incorrect-iterator-keys the key should stay there. Reformatting breaks todomvc.

Steps To Reproduce

Steps to reproduce the behavior:

Expected behavior

key should not be removed(?) I'm not that familiar with the rest of the syntax to comment on other changes that were made.

Screenshots

image

image

Environment:

Questionnaire