for idx,c in enumerate(self.completers):
try:
event = CompleteEvent()
matched.extend(list(c.get_completions(doc, event)))
if matched:
return code[matched[0].start_position:], [x.text for x in matched]
except Exception as e:
pass
After Change
log(matched)
if matched is None:
continue
elif isinstance(matched, tuple):
if matched[1]:
return matched
else:
// iterator ...
matched = list(matched)
if matched:
return code[matched[0].start_position:], [x.text for x in matched]
except Exception as e:
raise