Mark source as volatile (#844)

Deoplete expects to carry out the filtering of snippets by default, but the UltiSnips source uses UltiSnips#SnippetsInCurrentScope() which filters the returned snippets based on user input. Without is_volatile, Deoplete will cache the first set of results UltiSnips returns and keep trying to filter that, rather than getting a new set of results when the input changes.
This commit is contained in:
Tom Beynon 2018-03-30 19:37:02 +01:00 committed by Holger Rapp
parent 423f264e75
commit 89c93fc089

View File

@ -7,6 +7,7 @@ class Source(Base):
self.name = 'ultisnips'
self.mark = '[US]'
self.rank = 8
self.is_volatile = True
def gather_candidates(self, context):
suggestions = []