From 8ef443c2f1ebb27f52dc145b795c04b10a97d110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B?= Date: Tue, 2 Jul 2024 15:19:19 +0200 Subject: [PATCH] rename LspRenameFileCommand to LspRenamePathCommand --- Default.sublime-commands | 2 +- Side Bar.sublime-menu | 2 +- boot.py | 4 ++-- plugin/rename_file.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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):