diagnostics.py 文件源码

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

项目:LSP 作者: tomv564 项目源码 文件源码
def create_phantom(view: sublime.View, diagnostic: Diagnostic) -> sublime.Phantom:
    region = diagnostic.range.to_region(view)
    # TODO: hook up hide phantom (if keeping them)
    content = create_phantom_html(diagnostic.message)
    return sublime.Phantom(
        region,
        '<p>' + content + '</p>',
        sublime.LAYOUT_BELOW,
        lambda href: on_phantom_navigate(view, href, region.begin())
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号