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

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

liskin
Copy link
Contributor

@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
Contributor Author

liskin commented Nov 5, 2024

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

@zbirenbaum
Copy link
Owner

LGTM

@zbirenbaum zbirenbaum merged commit c810500 into zbirenbaum:master Dec 4, 2024
@liskin liskin deleted the loading branch December 12, 2024 15:11
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.

2 participants