def info_finished(self, future):
"""Call this callback when additional information for tag is available.
Creates popup containing information about text under the cursor
"""
if not future.done():
return
if future.cancelled():
return
(tooltip_request, result) = future.result()
if result == "":
return
if not tooltip_request:
return
if tooltip_request.get_identifier() != self.current_job_id:
return
view = tooltip_request.get_view()
view.show_popup(result,
location=tooltip_request.get_trigger_position(),
flags=sublime.HIDE_ON_MOUSE_MOVE_AWAY,
max_width=1000,
on_navigate=self.on_open_declaration)
评论列表
文章目录