From 234980699d2c5563baf9ae6d868a9f197f400f7b Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Thu, 31 May 2018 14:22:17 +0200 Subject: [PATCH] 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 --- src/tools/clangbackend/source/clangjobrequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/clangbackend/source/clangjobrequest.cpp b/src/tools/clangbackend/source/clangjobrequest.cpp index 2a37f8bfb2c..b3ec4ac07ff 100644 --- a/src/tools/clangbackend/source/clangjobrequest.cpp +++ b/src/tools/clangbackend/source/clangjobrequest.cpp @@ -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; }