mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
Fix completion on semicolon
This commit is contained in:
parent
6cd339059f
commit
26584cac81
@ -354,8 +354,8 @@ struct TextDocumentCompletionHandler : MessageHandler {
|
||||
// results Only do this when trigger is not manual or context doesn't
|
||||
// exist (for Atom support).
|
||||
if (existing_completion.empty() && is_global_completion &&
|
||||
(request->params.context && request->params.context->triggerKind !=
|
||||
lsCompletionTriggerKind::Invoked)) {
|
||||
(!request->params.context || request->params.context->triggerKind ==
|
||||
lsCompletionTriggerKind::TriggerCharacter)) {
|
||||
LOG_S(INFO) << "Existing completion is empty, no completion results "
|
||||
"will be returned";
|
||||
Out_TextDocumentComplete out;
|
||||
|
Loading…
Reference in New Issue
Block a user