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

qmlls: invalid completion inside of for-statements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 6.7
    • 6.7
    • QML: Tooling
    • None

      Currently, when you use the for-statement snippet, autocompleting a let-statement inside the for statement:

      for (<autocomplete the let-statement-snippet here>;;) {}

      You end up with an extra semicolon:

      for (let i = 0;;;) {}

      that is inserted after the let-statement template. I thought that I had already fixed the bug, but it seems that the fix is not working:

      fix this by using the QQmlLSUtilsAppendOption enum in suggestVariableDeclarationStatementCompletion used by suggestJSStatementCompletion()!

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes