goto_definition.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:sublime-flowtype 作者: Pegase745 项目源码 文件源码
def handle_process(self, returncode, stdout, error):
        """Handle the output from the threaded process."""
        if type(error) is bytes:
            error = error.decode('utf-8')

        if returncode != 0:
            logger.logger.error('get_def %s' % error)
            return

        logger.logger.debug(stdout)

        if stdout and stdout['path']:
            self.active_window.open_file(
                stdout['path'] +
                ':' + str(stdout['line']) +
                ':' + str(stdout['start']),
                sublime.ENCODED_POSITION |
                False
            )
        else:
            self.view.set_status('flow_type', 'Flow: no definition found')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号