Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

RELEASE: Restore path watching fix lost in merges#171

Merged
MikhailArkhipov merged 1 commit intomasterfrom
watch
Sep 30, 2018
Merged

RELEASE: Restore path watching fix lost in merges#171
MikhailArkhipov merged 1 commit intomasterfrom
watch

Conversation

@MikhailArkhipov
Copy link
Copy Markdown

  • Apparently new code was never called. Old code remained despite new function exists.
  • Fix issue in throttling

@MikhailArkhipov MikhailArkhipov changed the title RELEASE: Fix path watching lost in merges RELEASE: Restore path watching fix lost in merges Sep 30, 2018
private void TimerProc(object o) {
lock (_lock) {
if (_changedSinceLastTick) {
if (!_changedSinceLastTick) {
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.

I believe the old comparison was correct.
Otherwise it's not clear why later _changedSinceLastTick is set to false.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It is throttling. Flag tells when there were no changes since last timer tick - i.e. multiple file change activity (such as installation of a large package) is over and it is time to reload modules. In fact, I am thinking 500 ms is too low.

@MikhailArkhipov MikhailArkhipov merged commit ab73385 into master Sep 30, 2018
@MikhailArkhipov MikhailArkhipov deleted the watch branch October 1, 2018 23:13
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
RELEASE: Restore path watching fix lost in merges
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.

2 participants