def _filter_async(denite: Default, params: Params) -> typing.Any: text = params[0] if params else '' if denite._previous_text == text and not denite.is_async: # Skipped if same text return denite._context['input'] = text denite._update_candidates()
def _filter_async(denite: Default, params: Params) -> typing.Any: text = params[0] if params else '' if denite._previous_text == text and not denite.is_async: # Skipped if same text return denite._context['input'] = text # Disable timer until finished # Note: overwrapped update_candidates breaks candidates denite._vim.call('denite#filter#_stop_filter_timer') denite._update_candidates()
def _update_candidates(denite: Default, params: Params) -> typing.Any: if not denite._is_async: return denite._update_candidates()