Skip to content

Commit 7599139

Browse files
yyonchoMaskRay
authored andcommitted
[lsp-ui-sideline] Fix the check for code actions (#175)
The code has regressed after emacs-lsp/lsp-mode@338ffa8
1 parent befb3cf commit 7599139

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-ui-sideline.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ to the language server."
397397
lsp-ui-sideline--last-width (window-text-width))
398398
(when lsp-ui-sideline-show-flycheck
399399
(lsp-ui-sideline--flycheck))
400-
(when (and lsp-ui-sideline-show-code-actions (lsp--capability "codeActionProvider"))
400+
(when (and lsp-ui-sideline-show-code-actions (or (lsp--capability "codeActionProvider")
401+
(lsp--registered-capability "textDocument/codeAction")))
401402
(lsp--send-request-async (lsp--make-request
402403
"textDocument/codeAction"
403404
(if (equal lsp-ui-sideline-update-mode 'line)

0 commit comments

Comments
 (0)