fix(lsp): stop logging project root
This is done upstream now. Also prevents double-prompting (#6877). Ref: emacs-lsp/lsp-mode@65fb3e8d07 Close: #6877
This commit is contained in:
parent
3d8f9ae5ea
commit
8b414e6d0a
1 changed files with 1 additions and 9 deletions
|
@ -76,15 +76,7 @@ Can be a list of backends; accepts any value `company-backends' accepts.")
|
|||
(setq-local flycheck-checker old-checker))
|
||||
(apply fn args)))
|
||||
|
||||
(add-hook! 'lsp-mode-hook
|
||||
(defun +lsp-display-guessed-project-root-h ()
|
||||
"Log what LSP things is the root of the current project."
|
||||
;; Makes it easier to detect root resolution issues.
|
||||
(when-let (path (buffer-file-name (buffer-base-buffer)))
|
||||
(if-let (root (lsp--calculate-root (lsp-session) path))
|
||||
(lsp--info "Guessed project root is %s" (abbreviate-file-name root))
|
||||
(lsp--info "Could not guess project root."))))
|
||||
#'+lsp-optimization-mode)
|
||||
(add-hook! 'lsp-mode-hook #'+lsp-optimization-mode)
|
||||
|
||||
(when (modulep! :completion company)
|
||||
(add-hook! 'lsp-completion-mode-hook
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue