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')
评论列表
文章目录