AndreOneti / qml-formatter

Formatter, definition and autocomplete for QML language
MIT License
17 stars 2 forks source link

Wrong alignment when element contain list #11

Closed tienlocnguyen closed 2 years ago

tienlocnguyen commented 2 years ago

When QML element contain a list which marked with [], the next close bracket will be shift to 1 level For example: This is wrong

            ComboBox {
                width: 200
                model: ["500000", "1000000"]
                }  // -> shifted to 1 level

But after comment the list, it's correct

            ComboBox {
                width: 200
                // model: ["500000", "1000000"]
            } // -> Correct
AndreOneti commented 2 years ago

Thanks for sharing this error, I will work on fixing it.

But this formatter is still under development.