Skip to content

Commit 3e775f8

Browse files
committed
`lsp-lens--create-interactive-command': non-nil
The COMMAND? argument of that function mustn't be nil, which is unclear from its name (?). Note that fact in its docstring. The name of that argument is still good though, because it refers to a field name in `CodeAction' and `CodeLens'. Based on a discussion with @kiennq.
1 parent b920f62 commit 3e775f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lsp-lens.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ BUFFER-MODIFIED? determines whether the buffer is modified or not."
144144
(define-key [mouse-1] (lsp-lens--create-interactive-command command))))
145145

146146
(defun lsp-lens--create-interactive-command (command?)
147-
"Create an interactive COMMAND? for the lens."
147+
"Create an interactive COMMAND? for the lens.
148+
COMMAND? shall be an `&Command' (e.g. `&CodeLens' :command?) and
149+
mustn't be nil."
148150
(if (functionp (lsp:command-command command?))
149151
(lsp:command-command command?)
150152
(lambda ()

0 commit comments

Comments
 (0)