Reduce sleep to 10ms

pull/6486/head
Jonatan Pettersson 3 months ago
parent 6dc9644d1e
commit 67eaf5cd55

@ -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 // TODO: Find a better way to handle this
// Sleep to avoid race condition between next code action/auto-format // Sleep to avoid race condition between next code action/auto-format
// and the textDocument/didChange notification // and the textDocument/didChange notification
std::thread::sleep(std::time::Duration::from_millis(100)); std::thread::sleep(std::time::Duration::from_millis(10));
} }
} }
} }

Loading…
Cancel
Save