[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 1f7bcb1 06/11: Slightly polish the Flymake integr
From: |
João Távora |
Subject: |
[elpa] externals/eglot 1f7bcb1 06/11: Slightly polish the Flymake integration |
Date: |
Sun, 10 Jun 2018 09:57:28 -0400 (EDT) |
branch: externals/eglot
commit 1f7bcb190e58c6a558d3d4b238c41611e419458c
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Slightly polish the Flymake integration
For backends, like RLS, that don't textDocument/publishDiagnostics
right away, assume that the file is clean. Since Flymake allows
multiple reportings, it should be OK.
* eglot.el (eglot--unreported-diagnostics): Move variable up here.
(eglot--maybe-activate-editing-mode): Assume no diagnostics on
open.
---
eglot.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/eglot.el b/eglot.el
index 5ede791..81a63fd 100644
--- a/eglot.el
+++ b/eglot.el
@@ -900,6 +900,9 @@ If optional MARKERS, make markers."
(add-hook 'eglot--managed-mode-hook 'flymake-mode)
(add-hook 'eglot--managed-mode-hook 'eldoc-mode)
+(defvar-local eglot--unreported-diagnostics nil
+ "Unreported Flymake diagnostics for this buffer.")
+
(defun eglot--maybe-activate-editing-mode (&optional server)
"Maybe activate mode function `eglot--managed-mode'.
If SERVER is supplied, do it only if BUFFER is managed by it. In
@@ -908,6 +911,7 @@ that case, also signal textDocument/didOpen."
(let* ((cur (and buffer-file-name (eglot--current-server)))
(server (or (and (null server) cur) (and server (eq server cur)
cur))))
(when server
+ (setq eglot--unreported-diagnostics `(:just-opened . nil))
(eglot--managed-mode-onoff server 1)
(eglot--signal-textDocument/didOpen))))
@@ -1057,9 +1061,6 @@ function with the server still running."
(_server (_method (eql :telemetry/event)) &rest _any)
"Handle notification telemetry/event") ;; noop, use events buffer
-(defvar-local eglot--unreported-diagnostics nil
- "Unreported diagnostics for this buffer.")
-
(cl-defmethod eglot-handle-notification
(server (_method (eql :textDocument/publishDiagnostics)) &key uri
diagnostics)
"Handle notification publishDiagnostics"
- [elpa] externals/eglot updated (e103d5f -> e460e50), João Távora, 2018/06/10
- [elpa] externals/eglot 1f7bcb1 06/11: Slightly polish the Flymake integration,
João Távora <=
- [elpa] externals/eglot 327119e 04/11: Shoosh compiler, João Távora, 2018/06/10
- [elpa] externals/eglot 7bd271f 05/11: * eglot.el (eglot--make-process): Use 'utf-8-emacs-unix, João Távora, 2018/06/10
- [elpa] externals/eglot 4501831 02/11: Close #12: support purposedly ignoring a server capability, João Távora, 2018/06/10
- [elpa] externals/eglot 5e63dcb 03/11: Cleanup the Flymake 26.1 hack slightly, João Távora, 2018/06/10
- [elpa] externals/eglot 133bee1 01/11: Fix typos, João Távora, 2018/06/10
- [elpa] externals/eglot 94fa254 07/11: Close #16: check flymake-mode before calling report-fn, João Távora, 2018/06/10
- [elpa] externals/eglot 1506172 10/11: Close #17: New eglot-ensure to put in a major-mode's hook, João Távora, 2018/06/10
- [elpa] externals/eglot f6bb0a7 08/11: Attempt to handle RLS sophisticated globs for didChangeWWatchedFiles, João Távora, 2018/06/10
- [elpa] externals/eglot e460e50 11/11: * eglot.el (Version): Bump to 0.9, João Távora, 2018/06/10
- [elpa] externals/eglot 935edcc 09/11: Fix indentation address@hidden by previous commit, João Távora, 2018/06/10