Skip to content

Commit

Permalink
Reduce sleep to 10ms
Browse files Browse the repository at this point in the history
  • Loading branch information
jpttrssn committed Sep 3, 2024
1 parent 05a4a5d commit c0868aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/commands/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit c0868aa

Please sign in to comment.