diff --git a/plugin/rename_file.py b/plugin/rename_file.py index d40ee50d5..d183b81d4 100644 --- a/plugin/rename_file.py +++ b/plugin/rename_file.py @@ -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