Skip to content

Commit

Permalink
Always default eglot-strict-mode to nil
Browse files Browse the repository at this point in the history
it's mostly useful for developers/debugger.  It's better to have the
latter remember to set it than users being hindered by it.

See joaotavora/eglot#131 (comment)

* eglot.el (eglot-strict-mode): default to nil.
  • Loading branch information
joaotavora committed Jul 22, 2022
1 parent f8eca23 commit ab549f7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,12 @@ Here's what an element of this alist might look like:
(Command ((:title . string) (:command . string)) (:arguments))"))

(eval-and-compile
(defvar eglot-strict-mode (if load-file-name '()
'(disallow-non-standard-keys
;; Uncomment these two for fun at
;; compile-time or with flymake-mode.
;;
;; enforce-required-keys
;; enforce-optional-keys
))
(defvar eglot-strict-mode
'(;; Uncomment next lines for fun and debugging
;; disallow-non-standard-keys
;; enforce-required-keys
;; enforce-optional-keys
)
"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
Expand Down

0 comments on commit ab549f7

Please sign in to comment.