forked from qt-creator/qt-creator
Clang: Fix slowness of code completion after opening the file
Task-number: QTCREATORBUG-15429 Change-Id: I9a8a582fb3c59a960425f83eb8e7b436f15d1c1a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -268,13 +268,9 @@ void ClangEditorDocumentProcessor::registerTranslationUnitForEditor(CppTools::Pr
|
||||
if (projectPart->id() != m_projectPart->id()) {
|
||||
ipcCommunicator.unregisterTranslationUnitsForEditor({fileContainerWithArguments()});
|
||||
ipcCommunicator.registerTranslationUnitsForEditor({fileContainerWithArguments(projectPart)});
|
||||
ipcCommunicator.updateTranslationUnitVisiblity();
|
||||
requestDocumentAnnotations(projectPart->id());
|
||||
}
|
||||
} else {
|
||||
ipcCommunicator.registerTranslationUnitsForEditor({{fileContainerWithArguments(projectPart)}});
|
||||
ipcCommunicator.updateTranslationUnitVisiblity();
|
||||
requestDocumentAnnotations(projectPart->id());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user