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 issues with dynamic updating of the version status bar item #754

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

aeisenberg
Copy link
Contributor

@aeisenberg aeisenberg commented Feb 11, 2021

  1. Wait a few seconds before updating the status bar after a version
    change.
  2. Ensure we are watching the correct configuration items for changes.
  3. Ensure the cli version is refreshed correctly.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [n/a] @github/docs-content-dsp has been cc'd in all issues for UI or other user-facing changes made by this pull request.

@aeisenberg aeisenberg force-pushed the aeisenberg/status-changes branch from 35bb16a to c33ff22 Compare February 11, 2021 23:06
// Wait a few seconds before updating the status item.
// This avoids a race condition where the cli's version
// is not updated before the status bar is refreshed.
setTimeout(() => this.updateStatusItem(), 3000);
Copy link
Contributor

Choose a reason for hiding this comment

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

setTimeout makes this non-blocking right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

1. Wait a few seconds before updating the status bar after a version
   change.
2. Ensure we are watching the correct configuration items for changes.
3. Ensure the cli version is refreshed correctly.
@aeisenberg aeisenberg force-pushed the aeisenberg/status-changes branch from c33ff22 to f1f596d Compare February 12, 2021 16:22
@aeisenberg aeisenberg merged commit 707cba4 into github:main Feb 12, 2021
@aeisenberg aeisenberg deleted the aeisenberg/status-changes branch February 12, 2021 16:23
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