-
Notifications
You must be signed in to change notification settings - Fork 4.9k
[core] Load the projects list without activating the projectile-mode #17006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I'm not currently at my personal computer to test this, but: If the user has selected If the above is correct, I feel like the better solution would be to skip the calls to |
|
@bcc32 Thanks for the comment. The If remove the Keep project list on Spacemacs startup buffer will provide consistent user experience. |
a84972b to
e3ebddd
Compare
|
I think if a user has gone out of their way to exclude the |
|
And it would be nice to take this opportunity to support Spacemacs starting up properly without projectile installed at all (e.g., if the user wants to exclude it in their dotfile) |
e3ebddd to
a84972b
Compare
|
@bcc32
This PR will use the function |
|
Got your points, mark this PR as draft first, will enhance it towards the comments. |
|
@bcc32 Before calling projectile function, it will detect projectile feature by spacemacs/core/core-spacemacs-buffer.el Lines 1450 to 1453 in 7d0ddf0
spacemacs/core/core-spacemacs-buffer.el Lines 1456 to 1459 in 7d0ddf0
So the changes works for projectile exists or projectile not exists cases. |
|
Got it, thank you for explaning. |
|
Thank you! |
…yl20bnr#17006) * [core] Load the projects without active projectile-mode * [core] Avoid byte-compilation warning about unknown function --------- Co-authored-by: Aaron L. Zeng <[email protected]>
Use the function
(projectile-known-projects)to replace the function(projectile-relevant-known-projects)for correctly getting the project list.This patch will:
projectile-modein spacemacs-bufferprojectile-known-projectswhich was introduced in the commit bbatsov/projectile@373fca7.The
projectileis part of+distributions/spacemacs/:spacemacs/layers/+distributions/spacemacs/layers.el
Line 43 in cc9b605
And it's activated in the function
spacemacs-project/init-projectile.The
projectile-modeis NOT part of+distributions/spacemacs-base/:spacemacs/layers/+distributions/spacemacs-base/layers.el
Line 28 in cc9b605
But it was activated in the
(spacemacs-buffer//insert-projects)even user selected thespacemacs-baseasdotspacemacs-distribution.