def _show_completions(self, view):
        try:
            # TODO: We probably should show completions after other chars.
            is_after_dot = view.substr(view.sel()[0].b - 1) == '.'
        except __HOLE__:
            return

        if not is_after_dot:
            return

        if not AnalysisServer.ping():
            return

        # First, send new content if any.
        if view.is_dirty() and is_active(view):
            _logger.debug('sending overlay data for %s', view.file_name())
            analyzer.g_server.send_add_content(view)

        if is_active(view):
            view.window().run_command('dart_get_completions')
dataset/ETHPy150Open guillermooo/dart-sublime-bundle/autocomplete.py/DartIdleAutocomplete._show_completions