Skip to content

Commit

Permalink
refactor: add lib interface to lsp_fiber
Browse files Browse the repository at this point in the history
ps-id: CF7F11C0-BACB-4E1D-9DDB-416EC6522C47
  • Loading branch information
rgrinberg committed May 12, 2022
1 parent 4aa9d06 commit cd60547
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions lsp-fiber/src/lsp_fiber.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Fiber_io = Fiber_io
module Lazy_fiber = Lazy_fiber
module Rpc = Rpc
module Client = Client
module Server = Server

module Private = struct
module Log = Import.Log
end
2 changes: 0 additions & 2 deletions lsp-fiber/test/lsp_fiber_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ module End_to_end_client = struct
end

module End_to_end_server = struct
module Server = Rpc.Server

type status =
| Started
| Initialized
Expand Down
2 changes: 1 addition & 1 deletion ocaml-lsp-server/src/import.ml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module Browse_raw = Merlin_specific.Browse_raw
listed alphabetically. Try to keep the order. *)
include struct
open Lsp_fiber
module Log = Import.Log
module Log = Private.Log
module Reply = Rpc.Reply
module Server = Server
module Lazy_fiber = Lsp_fiber.Lazy_fiber
Expand Down

0 comments on commit cd60547

Please sign in to comment.