forked from qt-creator/qt-creator
CppEditor: Switch off "extract function" quickfix with clangd
There is a clangd tweak that does the same, but better. Fixes: QTCREATORBUG-13240 Fixes: QTCREATORBUG-18607 Change-Id: I59822c725ccb38d995fd8ac03861b1931b81f74c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -5225,7 +5225,11 @@ ExtractFunction::ExtractFunction(FunctionNameGetter functionNameGetter)
|
||||
|
||||
void ExtractFunction::match(const CppQuickFixInterface &interface, QuickFixOperations &result)
|
||||
{
|
||||
CppRefactoringFilePtr file = interface.currentFile();
|
||||
const CppRefactoringFilePtr file = interface.currentFile();
|
||||
if (CppModelManager::usesClangd(file->editor()->textDocument())
|
||||
&& file->cppDocument()->languageFeatures().cxxEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
QTextCursor cursor = file->cursor();
|
||||
if (!cursor.hasSelection())
|
||||
|
Reference in New Issue
Block a user