Fix #2636: lsp init short circuits in Emacs <=26
This commit is contained in:
parent
1ed06e68cc
commit
29650a67a2
1 changed files with 2 additions and 2 deletions
|
@ -139,8 +139,8 @@ This also logs the resolved project root, if found, so we know where we are."
|
||||||
(and arg (not (equal arg 1))))))
|
(and arg (not (equal arg 1))))))
|
||||||
;; read-process-output-max is only available on recent
|
;; read-process-output-max is only available on recent
|
||||||
;; development builds of Emacs 27 and above
|
;; development builds of Emacs 27 and above
|
||||||
(when (boundp 'read-process-output-max)
|
(or (not (boundp 'read-process-output-max))
|
||||||
(setq-local read-process-output-max (* 1024 1024)))
|
(setq-local read-process-output-max (* 1024 1024)))
|
||||||
(prog1 (lsp-mode 1)
|
(prog1 (lsp-mode 1)
|
||||||
(setq-local lsp-buffer-uri (lsp--buffer-uri))
|
(setq-local lsp-buffer-uri (lsp--buffer-uri))
|
||||||
;; Announce what project root we're using, for diagnostic purposes
|
;; Announce what project root we're using, for diagnostic purposes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue