Skip to content

Commit

Permalink
fix(dune): enable dune rpc by default
Browse files Browse the repository at this point in the history
Dune build --watch integration relies on dune RPC, but this was only
enabled during tests.
Enable Dune integration by default instead, as suggested by @rgrinberg.

Fixes #690

Signed-off-by: Edwin Török <[email protected]>

ps-id: 458AE51C-44DA-4CA6-B457-F0431E27FA3E
  • Loading branch information
edwintorok authored and rgrinberg committed Apr 22, 2022
1 parent 86f0f7d commit c7dc1ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.11.3

## Fixes

- Enable dune rpc integration by default (#691, fixes #690)

# 1.11.2

## Fixes
Expand Down
4 changes: 2 additions & 2 deletions ocaml-lsp-server/src/dune.ml
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,10 @@ let create workspaces (client_capabilities : ClientCapabilities.t) diagnostics

let create workspaces (client_capabilities : ClientCapabilities.t) diagnostics
progress document_store ~log =
if inside_test then
if inside_test then ref Closed
else
create workspaces client_capabilities diagnostics progress document_store
~log
else ref Closed

let run_loop t =
Fiber.repeat_while ~init:() ~f:(fun () ->
Expand Down

0 comments on commit c7dc1ed

Please sign in to comment.