Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22241

Re-formater deletes code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 4.9.0-rc1
    • Quick / QML Support
    • None

    Description

      Enter this into the QML code editor:
      property var members: [

      {"name": "member1"}

      ,

      {"name": "member2"}

      ]

      Tools/Qml/JS/Reformat file

      Result: property var members: [, ]

      The re-formater should not delete code.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tjenssen Tim Jenssen
              thohartm Thomas Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes