Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-120137

qmlls: completion inserts extra semicolon in for loops

    XMLWordPrintable

Details

    • 90cbe74cd (dev), 0cf8d7d53 (6.7)

    Description

      Completion inside of for-loops inserts extra semicolons:

       

      function f() {
          for (le<ask for completion here>;;) {}
      }
      

      will insert an extra semicolon with the let-statement snippet:

      function f() {
         for (let x = 42;;;) {}
      }

      which breaks the for-loop. Also happens with const and let definitions.

      Attachments

        Issue Links

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

          Activity

            People

              sami.shalayel Sami Shalayel
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes