def show_diagnostics_hover(view, point, diagnostics):
#util.debug('got diagnostics: ', diagnostics)
formatted = list("{}: {}".format(format_severity(diagnostic.severity), diagnostic.message) for diagnostic in diagnostics)
#formatted.append("[{}]({})".format('Code Actions', 'code-actions'))
mdpopups.show_popup(
view,
"\n".join(formatted),
css=".mdpopups .lsp_hover { margin: 4px; }",
md=True,
flags=sublime.HIDE_ON_MOUSE_MOVE_AWAY,
location=point,
wrapper_class="lsp_hover",
max_width=800,
#on_navigate=lambda href: self.on_diagnostics_navigate(self, href, point, diagnostics)
)
评论列表
文章目录