diff --git a/Default.sublime-commands b/Default.sublime-commands index 2f64684d2..631920f88 100644 --- a/Default.sublime-commands +++ b/Default.sublime-commands @@ -153,7 +153,7 @@ }, { "caption": "LSP: Rename File", - "command": "lsp_rename_file" + "command": "lsp_rename_path" }, { "caption": "LSP: Code Action", diff --git a/Side Bar.sublime-menu b/Side Bar.sublime-menu index 5538942d2..a82bbd17c 100644 --- a/Side Bar.sublime-menu +++ b/Side Bar.sublime-menu @@ -2,7 +2,7 @@ { "caption": "LSP: Rename...", "mnemonic": "l", - "command": "lsp_rename_file", + "command": "lsp_rename_path", "args": {"paths": []} } ] diff --git a/boot.py b/boot.py index 6ff25cec8..32de129c4 100644 --- a/boot.py +++ b/boot.py @@ -69,7 +69,7 @@ from .plugin.references import LspSymbolReferencesCommand from .plugin.rename import LspHideRenameButtonsCommand from .plugin.rename import LspSymbolRenameCommand -from .plugin.rename_file import LspRenameFileCommand +from .plugin.rename_file import LspRenamePathCommand from .plugin.save_command import LspSaveAllCommand from .plugin.save_command import LspSaveCommand from .plugin.selection_range import LspExpandSelectionCommand @@ -147,7 +147,7 @@ "LspSymbolImplementationCommand", "LspSymbolReferencesCommand", "LspSymbolRenameCommand", - "LspRenameFileCommand", + "LspRenamePathCommand", "LspSymbolTypeDefinitionCommand", "LspToggleCodeLensesCommand", "LspToggleHoverPopupsCommand", diff --git a/plugin/rename_file.py b/plugin/rename_file.py index 9c785422e..fd8bec49c 100644 --- a/plugin/rename_file.py +++ b/plugin/rename_file.py @@ -32,7 +32,7 @@ def validate(self, path: str) -> bool: return len(path) > 0 -class LspRenameFileCommand(LspWindowCommand): +class LspRenamePathCommand(LspWindowCommand): capability = 'workspace.fileOperations.willRename' def is_enabled(self):