@@ -497,8 +497,6 @@ def get_code_actions(self):
497
497
return [
498
498
'perform' ,
499
499
'preview' ,
500
- 'perform in class hierarchy' ,
501
- 'preview in class hierarchy' ,
502
500
]
503
501
504
502
@staticmethod
@@ -555,6 +553,14 @@ def get_input_str(self, refactor, ctx):
555
553
556
554
return newname
557
555
556
+ def get_code_actions (self ):
557
+ return [
558
+ 'perform' ,
559
+ 'preview' ,
560
+ 'perform in class hierarchy' ,
561
+ 'preview in class hierarchy' ,
562
+ ]
563
+
558
564
@staticmethod
559
565
def get_changes (refactor , input_str , in_hierarchy = False ):
560
566
""" Get changes.
@@ -710,6 +716,14 @@ def get_refactor(ctx):
710
716
offset = None
711
717
return move .create_move (ctx .project , ctx .resource , offset )
712
718
719
+ def get_code_actions (self ):
720
+ return [
721
+ 'perform' ,
722
+ 'preview' ,
723
+ 'perform in class hierarchy' ,
724
+ 'preview in class hierarchy' ,
725
+ ]
726
+
713
727
714
728
class ChangeSignatureRefactoring (Refactoring ):
715
729
@@ -737,6 +751,14 @@ def get_refactor(ctx):
737
751
return change_signature .ChangeSignature (
738
752
ctx .project , ctx .resource , offset )
739
753
754
+ def get_code_actions (self ):
755
+ return [
756
+ 'perform' ,
757
+ 'preview' ,
758
+ 'perform in class hierarchy' ,
759
+ 'preview in class hierarchy' ,
760
+ ]
761
+
740
762
def get_changes (self , refactor , input_string , in_hierarchy = False ):
741
763
""" Function description.
742
764
0 commit comments