Skip to content

Commit

Permalink
remove is_visible code
Browse files Browse the repository at this point in the history
It is not necessary
  • Loading branch information
predragnikolic committed Jul 2, 2024
1 parent 890667c commit af04c56
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions plugin/rename_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ class LspRenameFileCommand(LspWindowCommand):
def is_enabled(self):
return True

def is_visible(self, dirs=None, files=None):
if dirs is None and files is None:
return True # show 'LSP: Rename File' in command palette
if dirs:
return len(dirs) == 1 # show 'LSP: Rename Folder' in sidebar
if files:
return len(files) == 1 # show 'LSP: Rename File' in sidebar
return False

def want_event(self) -> bool:
return False
Expand Down

0 comments on commit af04c56

Please sign in to comment.