Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7
-
None
-
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
- is duplicated by
-
QTBUG-119840 qmlls: invalid completion inside of for-statements
- Closed
- is required for
-
QTBUG-113727 qmlls: improve Code completion using new QQmlLSUtils stuff
- Closed
For Gerrit Dashboard: QTBUG-120137 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
525465,9 | qmlls: fix extra semicolon in for loops | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526841,3 | qmlls: fix extra semicolon in for loops | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |