Skip to content

Fix issues with dynamic updating of the version status bar item#754

Merged
aeisenberg merged 1 commit intogithub:mainfrom
aeisenberg:aeisenberg/status-changes
Feb 12, 2021
Merged

Fix issues with dynamic updating of the version status bar item#754
aeisenberg merged 1 commit intogithub:mainfrom
aeisenberg:aeisenberg/status-changes

Conversation

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