(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
(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))))
(_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"