def on_success(self, data):
"""Called when a result comes from the query
"""
if not data['result']:
sublime.status_message('Could not find symbol')
return
symbols = []
for result in data['result']:
symbols.append({
'title': result[0],
'location': 'File: {} Line: {} Column: {}'.format(
result[1], result[2], result[3]
),
'position': '{}:{}:{}'.format(result[1], result[2], result[3])
})
ExplorerPanel(self.view, symbols).show([])
评论列表
文章目录