From 67eaf5cd55aec07d8e61466bb81a37552fa5198e Mon Sep 17 00:00:00 2001 From: Jonatan Pettersson Date: Tue, 3 Sep 2024 13:27:53 +0200 Subject: [PATCH] Reduce sleep to 10ms --- helix-term/src/commands/lsp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index caa698b1a..0d6d47992 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -836,7 +836,7 @@ pub fn code_actions_on_save(cx: &mut compositor::Context, doc_id: &DocumentId) { // TODO: Find a better way to handle this // Sleep to avoid race condition between next code action/auto-format // and the textDocument/didChange notification - std::thread::sleep(std::time::Duration::from_millis(100)); + std::thread::sleep(std::time::Duration::from_millis(10)); } } }