def show_errors(self, view):
"""Show current error regions.
Args:
view (sublime.View): Current view
"""
if view.buffer_id() not in self.err_regions:
# view has no errors for it
return
current_error_dict = self.err_regions[view.buffer_id()]
regions = PopupErrorVis._as_region_list(current_error_dict)
log.debug("showing error regions: %s", regions)
view.add_regions(
PopupErrorVis._TAG,
regions,
PopupErrorVis._ERROR_SCOPE,
self.gutter_mark,
PopupErrorVis._ERROR_FLAGS)
评论列表
文章目录