Skip to content
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

fix: delay copilot login check and avoid raising error #4709

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kassick
Copy link
Contributor

@kassick kassick commented Feb 12, 2025

There appears to be some issues with being too eager to check for the login. The server may not have been properly initialized, which results in an error being raised by lsp-copilot--authenticated-as. That seems to wreck havoc in the call stack and leave lsp in a weird state -- there is a copilot server running, there seems to be a client that can be restarted... but there is no workspace registered ...

This change give some time for the server to spin up and avoids raising an error if the authentication request did not work.

There appears to be some issues with being too eager to check for the login.
The server may not have been properly initialized, which results in an error
being raised by lsp-copilot--authenticated-as. That seems to wreck havoc in
the call stack and leave lsp in a weird state -- there is a copilot server
running, there seems to be a client that can be restarted... but there is no
workspace registered ...

This change give some time for the server to spin up and avoids raising an
error if the authentication request did not work.
@github-actions github-actions bot added the client One or more of lsp-mode language clients label Feb 12, 2025
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.

1 participant