Fixing rare hang issue with ultisnips completer
The issue was that AsyncCandidateRequestReady in the ultisnips completer would always return false if there were no snippets for the current filetype, leading to an infinite loop in CompletionsForQuery. Fixes #270.
This commit is contained in:
parent
a7203d97c8
commit
8c0a9bc90e
@ -43,11 +43,11 @@ class UltiSnipsCompleter( GeneralCompleter ):
|
||||
|
||||
|
||||
def AsyncCandidateRequestReady( self ):
|
||||
return bool( self._candidates )
|
||||
return True
|
||||
|
||||
|
||||
def CandidatesFromStoredRequest( self ):
|
||||
return self._filtered_candidates
|
||||
return self._filtered_candidates if self._filtered_candidates else []
|
||||
|
||||
|
||||
def OnFileReadyToParse( self ):
|
||||
|
Loading…
x
Reference in New Issue
Block a user