diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 12:00:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 12:00:01 +0800 |
commit | 18faee008bdee7e23042b137eae141a3892f5086 (patch) | |
tree | 52aa6981771db3dc773d3a692be91c09115104e1 /script | |
parent | d58bd9064a60ebfb6d2dbe97b383e28f0a8fc34a (diff) | |
download | lua-language-server-18faee008bdee7e23042b137eae141a3892f5086.zip |
fix progress
Diffstat (limited to 'script')
-rw-r--r-- | script/progress.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/progress.lua b/script/progress.lua index e1d6cbeb..1c067898 100644 --- a/script/progress.lua +++ b/script/progress.lua @@ -78,7 +78,6 @@ function mt:_update() if not self._dirty then return end - self._dirty = false if not self._showed and self._clock + self._delay <= os.clock() then self._showed = true @@ -97,6 +96,7 @@ function mt:_update() } }) log.info('Create progress:', self._token, self._title) + self._dirty = false return end if not self._showed then @@ -105,6 +105,7 @@ function mt:_update() if os.clock() - self._updated < 0.05 then return end + self._dirty = false self._updated = os.clock() proto.notify('$/progress', { token = self._token, |