forked from qt-creator/qt-creator
ClangCodeModel: Force clangd re-highlighting on font settings change
Change-Id: Ie449a5329bd49eac116751e66a07602f316e147d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -261,7 +261,7 @@ void SemanticTokenSupport::updateSemanticTokens(TextDocument *textDocument)
|
||||
void SemanticTokenSupport::rehighlight()
|
||||
{
|
||||
for (const Utils::FilePath &filePath : m_tokens.keys())
|
||||
highlight(filePath);
|
||||
highlight(filePath, true);
|
||||
}
|
||||
|
||||
void addModifiers(int key,
|
||||
@@ -474,7 +474,7 @@ void SemanticTokenSupport::handleSemanticTokensDelta(
|
||||
highlight(filePath);
|
||||
}
|
||||
|
||||
void SemanticTokenSupport::highlight(const Utils::FilePath &filePath)
|
||||
void SemanticTokenSupport::highlight(const Utils::FilePath &filePath, bool force)
|
||||
{
|
||||
TextDocument *doc = TextDocument::textDocumentForFilePath(filePath);
|
||||
if (!doc || LanguageClientManager::clientForDocument(doc) != m_client)
|
||||
@@ -517,7 +517,7 @@ void SemanticTokenSupport::highlight(const Utils::FilePath &filePath)
|
||||
}
|
||||
}
|
||||
|
||||
m_tokensHandler(doc, expandedTokens, versionedTokens.version);
|
||||
m_tokensHandler(doc, expandedTokens, versionedTokens.version, force);
|
||||
return;
|
||||
}
|
||||
int line = 1;
|
||||
|
||||
Reference in New Issue
Block a user