diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2023-08-28 11:13:18 +0200 |
|---|---|---|
| committer | Sami Shalayel <sami.shalayel@qt.io> | 2023-08-29 21:34:09 +0200 |
| commit | 50a7560b784f16e4d8d697ce62bede8aa56d75f6 (patch) | |
| tree | 0105f1f197a546e42b69440df193aa735edc334c /src/qml/compiler/qv4codegen.cpp | |
| parent | c6cda495c636a204cb6ce2a7a1af689fb618a663 (diff) | |
qmlls: show fix suggestions and enable quick fixes
Display the fix suggestions from qmllint in qmlls instead of just
showing the warning.
For example,
'Unqualified access: xxx is accessible in this scope because you are
handling a signal at 18:10. Use a function instead.'
sounds so much more helpful than the previous 'Unqualified access'.
Add an ending '.' in QQmlJSFixSuggestion's messages where missing.
Enable quick-fixes in VS Code and QtC by labeling quickfixes as
quickfixes. Everything that is not labelled a quickfix might need a
special language client implementation to work.
Also, add a test for quickfixes: it seems someone broke the quick
fix functionality in qmlls by mistake by relabeling a quickfix to
'refactor.rewrite'.
Task-number: QTBUG-115213
Change-Id: I350e23901b97d16a60bb39fdb4ab566b0d7fbdfb
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
0 files changed, 0 insertions, 0 deletions
