Skip to content

Commit 7866010

Browse files
committed
fix: broken debouncing
ps-id: 633D40D0-FB6D-4307-A570-E16F732E69EB
1 parent 36de1b2 commit 7866010

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# 1.10.2
1+
# 1.10.2 (unreleased)
22

33
## Fixes
44

55
- Catch merlin desturct exceptions (#626)
6+
- Fix broken debouncing (#627)
67

78
# 1.10.1
89

ocaml-lsp-server/src/ocaml_lsp_server.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ let set_diagnostics rpc doc =
159159
let+ () =
160160
task_if_running state.detached ~f:(fun () ->
161161
let timer = Document.timer doc in
162+
let* () = Lev_fiber.Timer.Wheel.cancel timer in
162163
Lev_fiber.Timer.Wheel.reset timer;
163164
let* res = Lev_fiber.Timer.Wheel.await timer in
164165
match res with

submodules/lev

0 commit comments

Comments
 (0)