#2492 - Try to fix a deoplete bug again

This commit is contained in:
w0rp
2019-05-12 19:35:10 +01:00
parent 7943bfab96
commit bfc79bd2aa
4 changed files with 103 additions and 6 deletions

View File

@@ -30,6 +30,10 @@ class Source(Base):
return self.vim.call('ale#completion#GetCompletionPosition')
def gather_candidates(self, context):
# Stop early if ALE can't provide completion data for this buffer.
if not self.vim.call('ale#completion#CanProvideCompletions'):
return None
if context.get('is_refresh'):
context['is_async'] = False
@@ -47,4 +51,4 @@ class Source(Base):
# Request some completion results.
self.vim.call('ale#completion#GetCompletions', 'deoplete')
return None
return []