File tree 2 files changed +12
-1
lines changed 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 15
15
{ "caption" : " Mix Test: Toggle --stale Flag" , "command" : " mix_test_toggle_stale_flag" },
16
16
{ "caption" : " Mix Test: Switch to Code or Test" , "command" : " mix_test_switch_to_code_or_test" },
17
17
{ "caption" : " Mix Test: Show Panel" , "command" : " mix_test_show_panel" },
18
+ { "caption" : " Mix Test: Hide Panel" , "command" : " mix_test_hide_panel" },
18
19
{ "caption" : " Mix Format: File" , "command" : " mix_format_file" },
19
20
{ "caption" : " Mix Format: Project / Folder" , "command" : " mix_format_project" },
20
21
{ "caption" : " Mix Format: Toggle Auto-Formatting" , "command" : " mix_format_toggle_auto_format" },
Original file line number Diff line number Diff line change @@ -280,7 +280,17 @@ def run(self, **_kwargs):
280
280
self .window .run_command ('show_panel' , {'panel' : PANEL_NAME })
281
281
282
282
def is_enabled (self ):
283
- return PANEL_NAME in self .window .panels ()
283
+ return PANEL_NAME != self .window .active_panel () and PANEL_NAME in self .window .panels ()
284
+
285
+ class MixTestHidePanelCommand (sublime_plugin .WindowCommand ):
286
+ def description (self ):
287
+ return 'Hides the output panel if visible.'
288
+
289
+ def run (self , ** _kwargs ):
290
+ self .window .run_command ('hide_panel' , {'panel' : PANEL_NAME })
291
+
292
+ def is_enabled (self ):
293
+ return PANEL_NAME == self .window .active_panel ()
284
294
285
295
286
296
# Helper functions:
You can’t perform that action at this time.
0 commit comments