emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.76k stars 879 forks source link

Fix project root discovery when project features aren't loaded. #4463

Closed brownts closed 4 months ago

brownts commented 4 months ago

It's possible for the corresponding project package (i.e., projectile or project) to not be loaded yet but there to exist autoloads for the functions. In that situation, using featurep to check for the existence of the package will fail. Therefore, fboundp is used instead to check for the existence (possibly an autoload) of the needed functions.

jcs090218 commented 4 months ago

Make sense. Thank you!