forked from qt-creator/qt-creator
LanguageClient: Re-highlight also on empty deltas
This is needed for e.g. ClangdClient, which may need to update even if the highlighting delta from the server is empty. Task-number: QTCREATORBUG-26183 Change-Id: I38398c9563fa7a6a1906c5cb57fd1cbcd444cbd9 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -387,8 +387,7 @@ void SemanticTokenSupport::handleSemanticTokensDelta(
|
||||
} else if (auto tokensDelta = Utils::get_if<SemanticTokensDelta>(&result)) {
|
||||
QList<SemanticTokensEdit> edits = tokensDelta->edits();
|
||||
if (edits.isEmpty()) {
|
||||
if (m_highlightOnEmptyDelta)
|
||||
highlight(filePath);
|
||||
highlight(filePath);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user