forked from qt-creator/qt-creator
Clang: Prioritize current and visible translation units
We reparse first the current and then the visible translation units before we reparse all other units. The signals connections are queued to wait for the visible editor update. Change-Id: I5e2b8bc80568450268ca24e26720b3f5af640995 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -268,10 +268,12 @@ 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