Merge pull request #689 from zed-industries/format-timeout

Skip formatting during save if it takes too long
This commit is contained in:
Antonio Scandurra
2022-03-28 16:17:56 +02:00
committed by GitHub
8 changed files with 360 additions and 202 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ impl Deterministic {
if let Some((_, wakeup_time, _)) = state.pending_timers.first() {
let wakeup_time = *wakeup_time;
if wakeup_time < new_now {
if wakeup_time <= new_now {
let timer_count = state
.pending_timers
.iter()