File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -463,10 +463,11 @@ def run(self):
463
463
if not input_str :
464
464
return False
465
465
466
+ code_actions = self .get_code_actions ()
466
467
action = env .user_input_choices (
467
- 'Choose what to do:' , 'perform' , 'preview' ,
468
- 'perform in class hierarchy' ,
469
- 'preview in class hierarchy' )
468
+ 'Choose what to do:' ,
469
+ * code_actions ,
470
+ )
470
471
471
472
in_hierarchy = action .endswith ("in class hierarchy" )
472
473
@@ -492,6 +493,14 @@ def run(self):
492
493
except Exception as e : # noqa
493
494
env .error ('Unhandled exception in Pymode: %s' % e )
494
495
496
+ def get_code_actions (self ):
497
+ return [
498
+ 'perform' ,
499
+ 'preview' ,
500
+ 'perform in class hierarchy' ,
501
+ 'preview in class hierarchy' ,
502
+ ]
503
+
495
504
@staticmethod
496
505
def get_refactor (ctx ):
497
506
""" Get refactor object. """
You can’t perform that action at this time.
0 commit comments