diagnostic.py 文件源码

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

项目:DXMate 作者: jtowers 项目源码 文件源码
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)
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号