mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(lsp): gate gcmh API call behind gcmh-mode check
In case the mode is activated before gcmh is loaded (as is the case with session persistance libraries like desktop.el or persp{ective,-mode}.el). Close: #8372
This commit is contained in:
@ -35,7 +35,8 @@ killing and opening many LSP/eglot-powered buffers.")
|
||||
;; so we modify its variables rather than `gc-cons-threshold'
|
||||
;; directly.
|
||||
(setq-default gcmh-high-cons-threshold (* 2 +lsp--default-gcmh-high-cons-threshold))
|
||||
(gcmh-set-high-threshold)
|
||||
(when (bound-and-true-p gcmh-mode)
|
||||
(gcmh-set-high-threshold))
|
||||
(setq +lsp--optimization-init-p t))))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user