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

qmlls: invalid completion inside of for-statements

    XMLWordPrintable

Details

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

    Description

      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()!

      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:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes