Fix completion on semicolon

This commit is contained in:
Rian Neogi 2018-03-15 04:16:47 +05:30 committed by Jacob Dufault
parent 6cd339059f
commit 26584cac81

View File

@ -354,8 +354,8 @@ struct TextDocumentCompletionHandler : MessageHandler {
// results Only do this when trigger is not manual or context doesn't // results Only do this when trigger is not manual or context doesn't
// exist (for Atom support). // exist (for Atom support).
if (existing_completion.empty() && is_global_completion && if (existing_completion.empty() && is_global_completion &&
(request->params.context && request->params.context->triggerKind != (!request->params.context || request->params.context->triggerKind ==
lsCompletionTriggerKind::Invoked)) { lsCompletionTriggerKind::TriggerCharacter)) {
LOG_S(INFO) << "Existing completion is empty, no completion results " LOG_S(INFO) << "Existing completion is empty, no completion results "
"will be returned"; "will be returned";
Out_TextDocumentComplete out; Out_TextDocumentComplete out;