Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Make spinner consistent despite multiple running diagnostics #40

Merged
merged 1 commit into from
Mar 26, 2017

Conversation

Xanewok
Copy link
Member

@Xanewok Xanewok commented Mar 26, 2017

I noticed that sometimes when modifying code the spinner behaved erratically - it could sometimes appear as stuck or be spinning very, very fast. Upon further inspection it seems that it's related to multiple timers updating status bar message at at different times.
Making it use at most 1 timer seems to have fixed the problem. From what I read about Node.JS architecture/intervals, access to spinnerTimer should be safe, as there's only single thread executing interval callbacks.
I'm not a JS/JS developer myself, so I'm open to any suggestions regarding this change. It's a minuscule change, but I hope it still has some value :)

@nrc
Copy link
Member

nrc commented Mar 26, 2017

LGTM, but r? @jonathandturner

@sophiajt sophiajt merged commit 40044e9 into rust-lang:master Mar 26, 2017
@sophiajt
Copy link

Thank you!

@Xanewok Xanewok deleted the consistent-timer branch April 1, 2017 12:23
Xanewok pushed a commit to Xanewok/rls-vscode that referenced this pull request Mar 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants