From 511bbbe3914ee7503954f88f6ab573795fc67d41 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Thu, 21 Sep 2017 23:48:05 -0700 Subject: [PATCH] Add TODO --- src/clang_complete.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/clang_complete.cc b/src/clang_complete.cc index 49fb268f..dea3beae 100644 --- a/src/clang_complete.cc +++ b/src/clang_complete.cc @@ -438,6 +438,10 @@ void CompletionQueryMain(ClangCompleteManager* completion_manager) { // Emit diagnostics. if (request->emit_diagnostics) { + // TODO: before emitting diagnostics check if we have another completion + // request and think about servicing that first, because it may be much + // faster than reparsing the document. + timer.Reset(); clang_reparseTranslationUnit( session->tu->cx_tu, unsaved.size(), unsaved.data(),