Variable: eglot-strict-mode
eglot-strict-mode is a variable defined in eglot.el.gz.
Value
(no-unknown-interfaces)
Documentation
How strictly to check LSP interfaces at compile- and run-time.
Value is a list of symbols (if the list is empty, no checks are performed).
If the symbol disallow-non-standard-keys is present, an error
is raised if any extraneous fields are sent by the server. At
compile-time, a warning is raised if a destructuring spec
includes such a field.
If the symbol enforce-required-keys is present, an error is
raised if any required fields are missing from the message sent
from the server. At compile-time, a warning is raised if a
destructuring spec doesn't use such a field.
If the symbol enforce-optional-keys is present, nothing special
happens at run-time. At compile-time, a warning is raised if a
destructuring spec doesn't use all optional fields.
If the symbol disallow-unknown-methods is present, Eglot warns
on unknown notifications and errors on unknown requests.
If the symbol no-unknown-interfaces is present, Eglot warns at
compile time if an undeclared LSP interface is used.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(eval-and-compile
(defvar eglot-strict-mode
'(;; Uncomment next lines for fun and debugging
;; disallow-non-standard-keys
;; enforce-required-keys
;; enforce-optional-keys
no-unknown-interfaces)
"How strictly to check LSP interfaces at compile- and run-time.
Value is a list of symbols (if the list is empty, no checks are
performed).
If the symbol `disallow-non-standard-keys' is present, an error
is raised if any extraneous fields are sent by the server. At
compile-time, a warning is raised if a destructuring spec
includes such a field.
If the symbol `enforce-required-keys' is present, an error is
raised if any required fields are missing from the message sent
from the server. At compile-time, a warning is raised if a
destructuring spec doesn't use such a field.
If the symbol `enforce-optional-keys' is present, nothing special
happens at run-time. At compile-time, a warning is raised if a
destructuring spec doesn't use all optional fields.
If the symbol `disallow-unknown-methods' is present, Eglot warns
on unknown notifications and errors on unknown requests.
If the symbol `no-unknown-interfaces' is present, Eglot warns at
compile time if an undeclared LSP interface is used."))