forked from qt-creator/qt-creator
ClangCodeModel: Remove ClangModelManagerSupport::instance()
Not needed. Change-Id: I46ee3a493ddb59c4b5f0e3eb4443d7f348a6b074 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "tasktimers.h"
|
||||
|
||||
#include <cppeditor/semantichighlighter.h>
|
||||
#include <languageclient/languageclientmanager.h>
|
||||
#include <languageclient/semantichighlightsupport.h>
|
||||
#include <languageserverprotocol/lsptypes.h>
|
||||
#include <texteditor/blockrange.h>
|
||||
@@ -381,7 +382,7 @@ void doSemanticHighlighting(
|
||||
const Position startPos(r.line - 1, r.column - 1);
|
||||
virtualRanges << Range(startPos, startPos.withOffset(r.length, &doc));
|
||||
}
|
||||
QMetaObject::invokeMethod(ClangModelManagerSupport::instance(),
|
||||
QMetaObject::invokeMethod(LanguageClientManager::instance(),
|
||||
[filePath, virtualRanges, docRevision] {
|
||||
if (ClangdClient * const client = ClangModelManagerSupport::clientForFile(filePath))
|
||||
client->setVirtualRanges(filePath, virtualRanges, docRevision);
|
||||
|
||||
Reference in New Issue
Block a user