aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorPascal Kuthe2023-07-07 21:46:34 +0000
committerGitHub2023-07-07 21:46:34 +0000
commit618620b36907bb2cbe29cd0e737efad9f651a00d (patch)
treecc6f5e2296017bd98bd0969a87f90b3586b72993 /helix-view
parentdc50263ed049f5eb4cec013c269e83e7395f40c2 (diff)
use redraw handle for debouncing LSP messages (#7538)
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index f5ed7b8f..630ea5cf 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -1705,7 +1705,7 @@ impl Editor {
_ = self.redraw_handle.0.notified() => {
if !self.needs_redraw{
self.needs_redraw = true;
- let timeout = Instant::now() + Duration::from_millis(96);
+ let timeout = Instant::now() + Duration::from_millis(33);
if timeout < self.idle_timer.deadline(){
self.idle_timer.as_mut().reset(timeout)
}