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:
Nikolai Kosjar
2018-05-31 14:22:17 +02:00
parent cf960e4788
commit 234980699d

View File

@@ -157,7 +157,7 @@ static JobRequest::RunConditions conditionsForType(JobRequest::Type type)
| Conditions(Condition::DocumentVisible); | Conditions(Condition::DocumentVisible);
if (type == Type::RequestReferences || type == Type::FollowSymbol if (type == Type::RequestReferences || type == Type::FollowSymbol
|| type == Type::RequestToolTip) { || type == Type::RequestToolTip || type == Type::UpdateExtraDocumentAnnotations) {
conditions |= Condition::CurrentDocumentRevision; conditions |= Condition::CurrentDocumentRevision;
} }