Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit41ed4df

Browse files
committed
Don't present irrelevant in_hierarchy options
1 parent6c51814 commit41ed4df

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

‎pymode/rope.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
returnnewname
557555

556+
defget_code_actions(self):
557+
return [
558+
'perform',
559+
'preview',
560+
'perform in class hierarchy',
561+
'preview in class hierarchy',
562+
]
563+
558564
@staticmethod
559565
defget_changes(refactor,input_str,in_hierarchy=False):
560566
""" Get changes.
@@ -710,6 +716,14 @@ def get_refactor(ctx):
710716
offset=None
711717
returnmove.create_move(ctx.project,ctx.resource,offset)
712718

719+
defget_code_actions(self):
720+
return [
721+
'perform',
722+
'preview',
723+
'perform in class hierarchy',
724+
'preview in class hierarchy',
725+
]
726+
713727

714728
classChangeSignatureRefactoring(Refactoring):
715729

@@ -737,6 +751,14 @@ def get_refactor(ctx):
737751
returnchange_signature.ChangeSignature(
738752
ctx.project,ctx.resource,offset)
739753

754+
defget_code_actions(self):
755+
return [
756+
'perform',
757+
'preview',
758+
'perform in class hierarchy',
759+
'preview in class hierarchy',
760+
]
761+
740762
defget_changes(self,refactor,input_string,in_hierarchy=False):
741763
""" Function description.
742764

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp