def run(self, **args): show = args["show"] if "show" in args else None aview = sublime.active_window().active_view() error_marks = get_setting("error_marks_on_panel_only", False, aview) if show or (show == None and not clang_error_panel.is_visible(self.window)): clang_error_panel.open(self.window) if error_marks: show_error_marks(aview) else: clang_error_panel.close() if error_marks: erase_error_marks(aview)