File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -6647,11 +6647,13 @@ to check if server wants to apply any workspaceEdits after renamed."
6647
6647
:files (vector (lsp-make-file-rename
6648
6648
:oldUri (lsp--path-to-uri old-name)
6649
6649
:newUri (lsp--path-to-uri new-name))))))
6650
- (when-let* ((edits (lsp-request "workspace/willRenameFiles" params)))
6651
- (lsp--apply-workspace-edit edits 'rename-file)
6652
- (funcall old-func old-name new-name ok-if-already-exists?)
6653
- (when (lsp--send-did-rename-files-p)
6654
- (lsp-notify "workspace/didRenameFiles" params))))
6650
+ (if-let* ((edits (lsp-request "workspace/willRenameFiles" params)))
6651
+ (progn
6652
+ (lsp--apply-workspace-edit edits 'rename-file)
6653
+ (funcall old-func old-name new-name ok-if-already-exists?)
6654
+ (when (lsp--send-did-rename-files-p)
6655
+ (lsp-notify "workspace/didRenameFiles" params)))
6656
+ (funcall old-func old-name new-name ok-if-already-exists?)))
6655
6657
(funcall old-func old-name new-name ok-if-already-exists?)))
6656
6658
6657
6659
(advice-add 'rename-file :around #'lsp--on-rename-file)
You can’t perform that action at this time.
0 commit comments