Commit 1a5e7b77 authored by Marco Bubke's avatar Marco Bubke

Clang: Send document revision with the completion request

The sent text should always accompanied by the document revision to avoid
useless the reparsing of the translation unit.

Change-Id: I4af50f277f9352f4af0cdda8a32ad76c44c1935f
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent dc31e374
......@@ -677,7 +677,8 @@ void ClangCompletionAssistProcessor::sendFileContent(const QString &projectPartI
ipcCommunicator.registerFilesForCodeCompletion({{m_interface->fileName(),
projectPartId,
Utf8String::fromByteArray(info.unsavedContent),
info.isDocumentModified}});
info.isDocumentModified,
uint(m_interface->textDocument()->revision())}});
}
void ClangCompletionAssistProcessor::sendCompletionRequest(int position,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment