forked from qt-creator/qt-creator
Clangd: use cached contents of text documents
Change-Id: I39216c66c68c45948c2181b8c885a90ae08441b0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user