forked from qt-creator/qt-creator
Clang: Fix running UpdateExtraDocumentAnnotations job on outdated document
Prior to this change, the UpdateExtraDocumentAnnotations job (e.g. providing the symbol outline information) was running concurrently to UpdateDocumentAnnotations job on the outdated translation unit. Now it runs on the same translation unit after the document was updated. Change-Id: I4d84102423592d8a1310c1ac0ebbce9bd76a3714 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -157,7 +157,7 @@ static JobRequest::RunConditions conditionsForType(JobRequest::Type type)
|
||||
| Conditions(Condition::DocumentVisible);
|
||||
|
||||
if (type == Type::RequestReferences || type == Type::FollowSymbol
|
||||
|| type == Type::RequestToolTip) {
|
||||
|| type == Type::RequestToolTip || type == Type::UpdateExtraDocumentAnnotations) {
|
||||
conditions |= Condition::CurrentDocumentRevision;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user