]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Merge branch 'main' into automate-lspcodeaction
authorYegappan Lakshmanan <4298407+yegappan@users.noreply.github.com>
Sat, 11 Mar 2023 16:09:11 +0000 (08:09 -0800)
committerGitHub <noreply@github.com>
Sat, 11 Mar 2023 16:09:11 +0000 (08:09 -0800)
1  2 
autoload/lsp/codeaction.vim
doc/lsp.txt

index 229523039a59fe73108d1885ed29e397a9f08517,ca3d664b72fa3090b031e1f1800f477704c19509..81994946c5c5af0a9b7c950d46d52da55a4b6e6c
@@@ -43,7 -43,13 +43,13 @@@ export def HandleCodeAction(lspserver: 
    endif
  enddef
  
- export def ApplyCodeAction(lspserver: dict<any>, actions: list<dict<any>>, query: string): void
 -export def ApplyCodeAction(lspserver: dict<any>, actionlist: list<dict<any>>): void
++export def ApplyCodeAction(lspserver: dict<any>, actionlist: list<dict<any>>, query: string): void
+   var actions = actionlist
+   if opt.lspOptions.hideDisabledCodeActions
+     actions = actions->filter((ix, act) => !act->has_key('disabled'))
+   endif
    if actions->empty()
      # no action can be performed
      util.WarnMsg('No code action is available')
diff --cc doc/lsp.txt
Simple merge