Skip to content

Commit

Permalink
rename LspRenameFileCommand to LspRenamePathCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Jul 2, 2024
1 parent 178adae commit 8ef443c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Default.sublime-commands
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
},
{
"caption": "LSP: Rename File",
"command": "lsp_rename_file"
"command": "lsp_rename_path"
},
{
"caption": "LSP: Code Action",
Expand Down
2 changes: 1 addition & 1 deletion Side Bar.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"caption": "LSP: Rename...",
"mnemonic": "l",
"command": "lsp_rename_file",
"command": "lsp_rename_path",
"args": {"paths": []}
}
]
4 changes: 2 additions & 2 deletions boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -147,7 +147,7 @@
"LspSymbolImplementationCommand",
"LspSymbolReferencesCommand",
"LspSymbolRenameCommand",
"LspRenameFileCommand",
"LspRenamePathCommand",
"LspSymbolTypeDefinitionCommand",
"LspToggleCodeLensesCommand",
"LspToggleHoverPopupsCommand",
Expand Down
2 changes: 1 addition & 1 deletion plugin/rename_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8ef443c

Please sign in to comment.