Skip to content

Commit 5537fec

Browse files
mattnhrsh7th
andauthored
Call command after edit (#734)
codeAction may contains edit and command both Co-authored-by: hrsh7th <[email protected]>
1 parent 3d4daa4 commit 5537fec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/lsp/ui/vim/code_action.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ function! s:handle_one_code_action(server_name, sync, command_or_code_action) ab
102102
" has WorkspaceEdit.
103103
if has_key(a:command_or_code_action, 'edit')
104104
call lsp#utils#workspace_edit#apply_workspace_edit(a:command_or_code_action['edit'])
105+
endif
105106

106107
" Command.
107-
elseif has_key(a:command_or_code_action, 'command') && type(a:command_or_code_action['command']) == type('')
108+
if has_key(a:command_or_code_action, 'command') && type(a:command_or_code_action['command']) == type('')
108109
call lsp#send_request(a:server_name, {
109110
\ 'method': 'workspace/executeCommand',
110111
\ 'params': a:command_or_code_action,

0 commit comments

Comments
 (0)