From 8b414e6d0a91d74971191e38ee979b469faaad82 Mon Sep 17 00:00:00 2001 From: Eric Dallo Date: Fri, 28 Oct 2022 21:44:01 -0300 Subject: [PATCH] fix(lsp): stop logging project root This is done upstream now. Also prevents double-prompting (#6877). Ref: emacs-lsp/lsp-mode@65fb3e8d0714 Close: #6877 --- modules/tools/lsp/+lsp.el | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/tools/lsp/+lsp.el b/modules/tools/lsp/+lsp.el index ee25eb80b..ce33181d6 100644 --- a/modules/tools/lsp/+lsp.el +++ b/modules/tools/lsp/+lsp.el @@ -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