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(panel): avoid being stuck "loading" #335

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

Conversation

liskin
Copy link

@liskin liskin commented Nov 5, 2024

Whenever the Copilot LSP knows it's not going to provide any suggestions, it replies with PanelSolutionsDone even before it completes the request. This resulted in us setting the status to "done" and then immediately resetting it to "loading", and thus getting stuck on "loading".

The fix is to set the status to "loading" in the initial refresh call itself to avoid the race between on_solutions_done and the get_panel_completions callback.

Whenever the Copilot LSP knows it's not going to provide any
suggestions, it replies with PanelSolutionsDone even before it completes
the request. This resulted in us setting the status to "done" and then
immediately resetting it to "loading", and thus getting stuck on
"loading".

The fix is to set the status to "loading" in the initial refresh call
itself to avoid the race between on_solutions_done and the
get_panel_completions callback.
@liskin
Copy link
Author

liskin commented Nov 5, 2024

This might be related to the following issues:
#307
#325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant