Skip to content

fix(panel): avoid being stuck "loading"#335

Merged
zbirenbaum merged 1 commit intozbirenbaum:masterfrom
liskin:loading
Dec 4, 2024
Merged

fix(panel): avoid being stuck "loading"#335
zbirenbaum merged 1 commit intozbirenbaum:masterfrom
liskin:loading

Conversation

@liskin
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

liskin commented Nov 5, 2024

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

@zbirenbaum
Copy link
Copy Markdown
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