@@ -497,8 +497,6 @@ def get_code_actions(self):
497497 return [
498498 'perform' ,
499499 'preview' ,
500- 'perform in class hierarchy' ,
501- 'preview in class hierarchy' ,
502500 ]
503501
504502 @staticmethod
@@ -555,6 +553,14 @@ def get_input_str(self, refactor, ctx):
555553
556554 return newname
557555
556+ def get_code_actions (self ):
557+ return [
558+ 'perform' ,
559+ 'preview' ,
560+ 'perform in class hierarchy' ,
561+ 'preview in class hierarchy' ,
562+ ]
563+
558564 @staticmethod
559565 def get_changes (refactor , input_str , in_hierarchy = False ):
560566 """ Get changes.
@@ -710,6 +716,14 @@ def get_refactor(ctx):
710716 offset = None
711717 return move .create_move (ctx .project , ctx .resource , offset )
712718
719+ def get_code_actions (self ):
720+ return [
721+ 'perform' ,
722+ 'preview' ,
723+ 'perform in class hierarchy' ,
724+ 'preview in class hierarchy' ,
725+ ]
726+
713727
714728class ChangeSignatureRefactoring (Refactoring ):
715729
@@ -737,6 +751,14 @@ def get_refactor(ctx):
737751 return change_signature .ChangeSignature (
738752 ctx .project , ctx .resource , offset )
739753
754+ def get_code_actions (self ):
755+ return [
756+ 'perform' ,
757+ 'preview' ,
758+ 'perform in class hierarchy' ,
759+ 'preview in class hierarchy' ,
760+ ]
761+
740762 def get_changes (self , refactor , input_string , in_hierarchy = False ):
741763 """ Function description.
742764
0 commit comments