Skip to content

Commit

Permalink
simpler conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Jun 27, 2024
1 parent f5c26a6 commit 437659f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/rename_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def is_enabled(self):
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 is not None:
if dirs:
return len(dirs) == 1 # show 'LSP: Rename Folder' in sidebar
if files is not None:
if files:
return len(files) == 1 # show 'LSP: Rename File' in sidebar
return False

Expand Down

0 comments on commit 437659f

Please sign in to comment.