Skip to content

Conversation

@kassick
Copy link
Contributor

@kassick kassick commented Jan 13, 2025

lsp-mode sugests installing copilot-ls for any supported major-mode that has a installable server. This results in users installing the copilot server when they did not intend to use copilot.

Once installed, copilot-ls would try to log in every time the client started.

This PR updates the copilot client to, by default, activate only when lsp-copilot-enabled is non-nil.

It also adds a hint to the user in the login function, helping them find how to disable copilot.

@github-actions github-actions bot added the client One or more of lsp-mode language clients label Jan 13, 2025
@kassick kassick changed the title fix: copilot respects the value of lsp-copilot-enabled [#4679] fix: copilot respects the value of lsp-copilot-enabled [https://github.com/emacs-lsp/lsp-mode/issues/4679] Jan 13, 2025
@kassick kassick changed the title fix: copilot respects the value of lsp-copilot-enabled [https://github.com/emacs-lsp/lsp-mode/issues/4679] fix: copilot respects the value of lsp-copilot-enabled [fixes #4679] Jan 13, 2025
@kassick
Copy link
Contributor Author

kassick commented Jan 13, 2025

Fixes #4679

@kiennq kiennq merged commit 0252be2 into emacs-lsp:master Jan 13, 2025
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client One or more of lsp-mode language clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants