aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmljseditor
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2023-08-31 13:57:09 +0200
committerSami Shalayel <sami.shalayel@qt.io>2023-09-04 11:08:07 +0000
commit79cc12ab8cb3cbdfb02a485f7bb2a46eaf717d61 (patch)
tree44cce8b07cea68f0d7d2fc91c34e4a502929cfaa /src/plugins/qmljseditor
parentfbd243e82e6f743a969556baa2fb8f77bd5dbf9e (diff)
qmljseditordocument: fix quickfix shortkey
QtC shows qmlls's warnings, but does not apply quick fixes to it when using the quickfix shortkey. In quickFixAssistProvider, use the base class implementation to detect running language clients and apply their quickfixes, and fallback to the builtin qml code model quickfix if no language client is running. Fixes: QTCREATORBUG-29557 Change-Id: I75262d13ab229f8d3b4069fc0003574d41cabab0 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r--src/plugins/qmljseditor/qmljseditordocument.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmljseditor/qmljseditordocument.cpp b/src/plugins/qmljseditor/qmljseditordocument.cpp
index 3b865570aca..065e39e0c37 100644
--- a/src/plugins/qmljseditor/qmljseditordocument.cpp
+++ b/src/plugins/qmljseditor/qmljseditordocument.cpp
@@ -856,6 +856,8 @@ Internal::QmlOutlineModel *QmlJSEditorDocument::outlineModel() const
TextEditor::IAssistProvider *QmlJSEditorDocument::quickFixAssistProvider() const
{
+ if (const auto baseProvider = TextDocument::quickFixAssistProvider())
+ return baseProvider;
return Internal::QmlJSEditorPlugin::quickFixAssistProvider();
}