Clangd: use cached contents of text documents

Change-Id: I39216c66c68c45948c2181b8c885a90ae08441b0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2025-01-13 10:58:04 +01:00
parent cb341c18cf
commit d000537315

View File

@@ -1566,7 +1566,7 @@ void ClangdClient::Private::handleSemanticTokens(TextDocument *doc,
} }
const auto runner = [tokens, filePath = doc->filePath(), const auto runner = [tokens, filePath = doc->filePath(),
text = doc->document()->toPlainText(), text = doc->plainText(),
rev = doc->document()->revision(), this] { rev = doc->document()->revision(), this] {
try { try {
return Utils::asyncRun(doSemanticHighlighting, filePath, tokens, text, return Utils::asyncRun(doSemanticHighlighting, filePath, tokens, text,