[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot badcaec 56/62: Don't warn on implementation-speci
From: |
Stefan Monnier |
Subject: |
[elpa] externals/eglot badcaec 56/62: Don't warn on implementation-specific notifications (#93) |
Date: |
Sat, 29 Sep 2018 17:13:37 -0400 (EDT) |
branch: externals/eglot
commit badcaeca88bc0f3908b94be99d82949309c4ebb5
Author: Fangrui Song <address@hidden>
Commit: João Távora <address@hidden>
Don't warn on implementation-specific notifications (#93)
Only warn when method name doesn't start with '$'. Per the spec:
"if a server or client receives notifications or requests
starting with ‘$/’ it is free to ignore them if they are unknown."
* eglot.el (eglot-handle-notification t t): Check method name for $.
---
eglot.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index 4ff7337..2ef2259 100644
--- a/eglot.el
+++ b/eglot.el
@@ -987,7 +987,8 @@ Uses THING, FACE, DEFS and PREPEND."
(cl-defmethod eglot-handle-notification
(_server method &key &allow-other-keys)
"Handle unknown notification"
- (eglot--warn "Server sent unknown notification method `%s'" method))
+ (unless (string-prefix-p "$" method)
+ (eglot--warn "Server sent unknown notification method `%s'" method)))
(cl-defmethod eglot-handle-request
(_server method &key &allow-other-keys)
- [elpa] externals/eglot f482c3e 60/62: Close #115: Don't block kill-buffer-hook if server somehow hangs, (continued)
- [elpa] externals/eglot f482c3e 60/62: Close #115: Don't block kill-buffer-hook if server somehow hangs, Stefan Monnier, 2018/09/29
- [elpa] externals/eglot 821b498 62/62: Correctly map DocumentSymbol's :kind to its name (#121), Stefan Monnier, 2018/09/29
- [elpa] externals/eglot bd6304d 57/62: Fix serious breakage introduced by #93, Stefan Monnier, 2018/09/29
- [elpa] externals/eglot 8e1a91b 31/62: Add a generic eglot-execute-command API, Stefan Monnier, 2018/09/29
- [elpa] externals/eglot d5167ea 29/62: Minor fixes to test infrastructure, Stefan Monnier, 2018/09/29
- [elpa] externals/eglot b0b16e2 37/62: Allow tests to be run with custom jsonrpc.el, Stefan Monnier, 2018/09/29
- [elpa] externals/eglot 8e0cf60 45/62: Fix textDocument/hover responses where MarkedString is a plist (#72), Stefan Monnier, 2018/09/29
- [elpa] externals/eglot 40f151b 51/62: Close #80: Consider :triggerCharacters in company completion, Stefan Monnier, 2018/09/29
- [elpa] externals/eglot e5b89af 53/62: Close #82: Correctly delete text before expanding snippet completions, Stefan Monnier, 2018/09/29
- [elpa] externals/eglot f9beb19 55/62: When exiting emacs, don't ask the user to confirm killing processes (#83), Stefan Monnier, 2018/09/29
- [elpa] externals/eglot badcaec 56/62: Don't warn on implementation-specific notifications (#93),
Stefan Monnier <=
- [elpa] externals/eglot 042a236 49/62: * README.md (Obligatory animated gif section): Add snippet gif., Stefan Monnier, 2018/09/29
- [elpa] externals/eglot b061873 61/62: Autoload eglot-ensure (#120), Stefan Monnier, 2018/09/29
- [elpa] externals/eglot f3f8531 58/62: Close #94: Prefer ccls over cquery for C/C++, Stefan Monnier, 2018/09/29