From 533ae71f6231b5dc7535983310fb0500c94a427e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 27 Oct 2018 10:38:17 -0700 Subject: [PATCH] Don't warn unhandled notifications if protocol implementation dependent --- lsp-io.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lsp-io.el b/lsp-io.el index d2dbc69f5ea..f1686f841e7 100644 --- a/lsp-io.el +++ b/lsp-io.el @@ -127,7 +127,8 @@ (gethash method lsp--default-notification-handlers)))) (if handler (funcall handler (lsp--parser-workspace p) params) - (lsp-warn "Unknown method: %s" method)))) + (unless (string-prefix-p "$" method) + (lsp-warn "Unknown method: %s" method))))) (defun lsp--on-request (p request) "Call the appropriate handler for REQUEST, and send the return value to the server."