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

Require a timeout when getting a loading lease #3178

Merged
merged 6 commits into from
Feb 16, 2024

Conversation

philipp-spiess
Copy link
Contributor

This fixes cases like https://sourcegraph.slack.com/archives/C05MW2TMYAV/p1707987812090509 where a loading lease that is never returned would be stuck forever.

Test plan

  • Remove the call of stopLoading() in the completions code
  • Trigger a completion and wait 30sec.
  • The loading indicator now stops

@philipp-spiess philipp-spiess self-assigned this Feb 15, 2024
Copy link
Member

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

vscode/src/services/StatusBar.ts Outdated Show resolved Hide resolved
@philipp-spiess philipp-spiess merged commit 519dcf8 into main Feb 16, 2024
16 of 17 checks passed
@philipp-spiess philipp-spiess deleted the ps/loading-state-lease-timeout branch February 16, 2024 00:20
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.

None yet

3 participants