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>
This commit is contained in:
Sami Shalayel
2023-08-31 13:57:09 +02:00
parent fbd243e82e
commit 79cc12ab8c

View File

@@ -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();
}