Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
QDS 4.0.1
-
None
-
-
4
-
QDS Berlin - 2023 Week 27/28, QDS Berlin - 2023 Week 29/30, QDS Berlin - 2023 Week 33/34, QDS Berlin - 2023 Week 35/36, QDS Berlin - 2023 Week 41/42, QDS Berlin - 2023 Week 43/44, QDS Berlin - 2023 Week 45/46
Description
Type annotations are deleted when QML files are reformatted using Tools menu → QML/JS → Reformat file.
Steps for reproduction:
To any QML file, add an arbitrary function whose arguments have type annotations.
For example:
function foo(i: int) {
console.log( i )
}
Reformat the file using the above command (show the Tools menu first if it is hidden in QDS 4.x)
: int will be deleted from the function.
The same issue occurs in Qt Creator 10.
Attachments
Issue Links
- depends on
-
QTCREATORBUG-29061 Reformatting QML files deletes type annotations
- Closed