hide quick actions if there are no errors
@@ -14,6 +14,10 @@ if MYPY:
class sublime_linter_quick_actions(sublime_plugin.TextCommand):
+ def is_visible(self, prefer_panel=False, **kwargs):
+ filename = util.get_filename(self.view)
+ return len(persist.file_errors[filename]) > 0
+
def is_enabled(self, prefer_panel=False, **kwargs):
# type: (bool, object) -> bool
if 'event' in kwargs:
