def on_query_completions(self, view, prefix, locations):
        if is_repl(view):
            logger.debug("JEDI does not complete in SublimeREPL views")
            return

        if not is_python_scope(view, locations[0]):
            logger.debug('JEDI completes only in python scope')
            return

        logger.info('JEDI completion triggered')

        completion_mode = self._get_completion_mode(view)

        if self.is_completion_ready:
            logger.debug(
                'JEDI has completion in daemon response {0}'.format(
                    self.completions
                )
            )

            self.is_completion_ready = None

            if self.completions:
                cplns = [tuple(i) for i in self.completions]
                self.completions = []

                if completion_mode in ('default', 'jedi'):
                    return cplns, PLUGIN_ONLY_COMPLETION
                return cplns

            return

        if self.is_completion_ready is None:
            if completion_mode == 'all':
                self.completions = self._get_default_completions(view, prefix, locations[0])

            ask_daemon(view, self._show_completions, 'autocomplete', locations[0])
            self.is_completion_ready = False

        view.run_command("hide_auto_complete")
        return
Make sure that we include from_addr or endpoint if provided, but only those keys
dataset/ETHPy150Open srusskih/SublimeJEDI/sublime_jedi/completion.py/Autocomplete.on_query_completions--crossover with--dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/backends/vumi/tests.py/VumiSendTest.test_from_addr_and_endpoint_in_payload