Skip to content

Commit e2edc74

Browse files
authored
Merge pull request #459 from MaskRay/warn
Don't warn unhandled notifications if protocol implementation dependent
2 parents 6896244 + 533ae71 commit e2edc74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-io.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@
127127
(gethash method lsp--default-notification-handlers))))
128128
(if handler
129129
(funcall handler (lsp--parser-workspace p) params)
130-
(lsp-warn "Unknown method: %s" method))))
130+
(unless (string-prefix-p "$" method)
131+
(lsp-warn "Unknown method: %s" method)))))
131132

132133
(defun lsp--on-request (p request)
133134
"Call the appropriate handler for REQUEST, and send the return value to the server."

0 commit comments

Comments
 (0)