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

Fixes to the tree expansion busy indicator #8582

Merged
merged 1 commit into from
Dec 8, 2020
Merged

Fixes to the tree expansion busy indicator #8582

merged 1 commit into from
Dec 8, 2020

Conversation

westbury
Copy link
Contributor

@westbury westbury commented Oct 2, 2020

What it does

Busy expansion indicators in the navigator were added in #7249. Support was very kindly added through public methods to allow extenders to also show these busy indicators. However there are two bugs that need to be fixed.

  1. A recursive call to markAsBusy should be a call to doMarkAsBusy. This bug prevents locks up on calls to markAsBusy. This function is not used internally by Theia so this bug would not have been found while testing Theia.

  2. A second less serious bug is in doSetBusy. The problem was that the test !!oldBusy === !!newBusy is not picking up changes where the busy count changes from one non-zero value to another non-zero value. So node.busy is not updated.

I also separated the function into separate 'set' and 'reset' functions. This simplifies the logic.

How to test

To see the bug one will need to add a custom extension that makes use of markAsBusy. I could add to examples if you like but I was not sure that's worthwhile for this.

At least test that the existing use of the busy indicator works as before. This commit has been in our product for at least one round of testing and it works well for us.

Review checklist

Reminder for reviewers

Signed-off-by: Nigel Westbury <nigelipse@miegel.org>
@westbury westbury added navigator issues related to the navigator/explorer tree issues related to the tree (ex: tree widget) progress issues related to the progress functionality labels Oct 2, 2020
@thegecko thegecko self-requested a review December 7, 2020 14:44
Copy link
Member

@thegecko thegecko left a comment

Choose a reason for hiding this comment

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

LGTM

@westbury westbury merged commit ec4804e into master Dec 8, 2020
@github-actions github-actions bot added this to the 1.9.0 milestone Dec 8, 2020
@thegecko thegecko deleted the busy-fixes branch December 8, 2020 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
navigator issues related to the navigator/explorer progress issues related to the progress functionality tree issues related to the tree (ex: tree widget)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants