Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # coding=utf-8 |
||
36 | class QuickGotoAnythingEditSettingsCommand(sublime_plugin.ApplicationCommand): |
||
37 | """This is a wrapper class for SublimeText's `open_file` command. |
||
38 | |||
39 | Hides the command in menu if `edit_settings` is not available. |
||
40 | """ |
||
41 | |||
42 | @staticmethod |
||
43 | def run(**kwargs): |
||
44 | """Expand variables and open the resulting file.""" |
||
45 | sublime.run_command('edit_settings', kwargs) |
||
46 | |||
47 | @staticmethod |
||
48 | def is_visible(): |
||
49 | """Return True to to show the command in command pallet and menu.""" |
||
50 | return STVER >= 3124 |
||
51 | |||
52 |