mirror of
https://github.com/c-cube/linol.git
synced 2025-12-05 19:00:34 -05:00
fixes and updates
This commit is contained in:
parent
5ba6f40a3c
commit
5b264f9f67
11 changed files with 30 additions and 8 deletions
3
Makefile
3
Makefile
|
|
@ -13,6 +13,9 @@ clean:
|
|||
doc:
|
||||
@dune build @doc
|
||||
|
||||
update-submodules:
|
||||
@git submodule update --init
|
||||
|
||||
VERSION=$(shell awk '/^version:/ {print $$2}' linol.opam)
|
||||
|
||||
update_next_tag:
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
of a document are expected to be able to return.
|
||||
*)
|
||||
|
||||
module Lsp = Linol.Lsp
|
||||
|
||||
type state_after_processing = unit
|
||||
|
||||
let process_some_input_file (_file_contents : string) : state_after_processing =
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
of a document are expected to be able to return.
|
||||
*)
|
||||
|
||||
module Lsp = Linol.Lsp
|
||||
|
||||
type state_after_processing = unit
|
||||
|
||||
let process_some_input_file (_file_contents : string) : state_after_processing =
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
module Lsp = Linol_lsp.Lsp
|
||||
module Jsonrpc = Linol_jsonrpc.Jsonrpc
|
||||
module Trace = Trace_core
|
||||
|
||||
let ( let@ ) = ( @@ )
|
||||
|
|
|
|||
2
src/dune
2
src/dune
|
|
@ -3,4 +3,4 @@
|
|||
(public_name linol)
|
||||
(private_modules log)
|
||||
(flags :standard -warn-error -a+8)
|
||||
(libraries yojson logs threads trace.core lsp jsonrpc))
|
||||
(libraries yojson logs threads trace.core (re_export linol.lsp) (re_export linol.jsonrpc)))
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
open struct
|
||||
module Lsp = Linol_lsp.Lsp
|
||||
end
|
||||
|
||||
module type IO = Linol.IO
|
||||
|
||||
module IO_eio :
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
See {{: https://www.jsonrpc.org/specification} the spec} *)
|
||||
|
||||
open Common_
|
||||
type json = Yojson.Safe.t
|
||||
|
||||
module type IO = Sigs.IO
|
||||
|
|
|
|||
11
src/linol.ml
11
src/linol.ml
|
|
@ -3,13 +3,16 @@
|
|||
Abstraction over The "Lsp" library, to make it easier to develop
|
||||
LSP servers in OCaml (but not necessarily {b for} OCaml). *)
|
||||
|
||||
module Imports = struct
|
||||
module Lsp = Lsp
|
||||
module Jsonrpc = Jsonrpc
|
||||
end
|
||||
|
||||
module type IO = Sigs.IO
|
||||
|
||||
(** {2 Re-export from vendored lsp} *)
|
||||
|
||||
module Lsp = Linol_lsp.Lsp
|
||||
module Jsonrpc = Linol_jsonrpc.Jsonrpc
|
||||
|
||||
(** {2 Main modules} *)
|
||||
|
||||
module Jsonrpc2 = Jsonrpc2
|
||||
module Server = Server
|
||||
module Blocking_IO = Blocking_IO
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
open struct
|
||||
module Lsp = Linol_lsp.Lsp
|
||||
end
|
||||
|
||||
module type IO = Linol.IO
|
||||
|
||||
module IO_lwt :
|
||||
|
|
|
|||
2
vendor/jsonrpc/dune
vendored
2
vendor/jsonrpc/dune
vendored
|
|
@ -1,5 +1,5 @@
|
|||
(copy_files %{project_root}/submodules/ocaml-lsp/jsonrpc/src/*.{ml,mli})
|
||||
|
||||
(library
|
||||
(name jsonrpc)
|
||||
(name linol_jsonrpc)
|
||||
(public_name linol.jsonrpc))
|
||||
|
|
|
|||
5
vendor/lsp/dune
vendored
5
vendor/lsp/dune
vendored
|
|
@ -1,9 +1,10 @@
|
|||
(copy_files %{project_root}/submodules/ocaml-lsp/lsp/src/*.{ml,mli,mll})
|
||||
|
||||
(library
|
||||
(name lsp)
|
||||
(name linol_lsp)
|
||||
(public_name linol.lsp)
|
||||
(libraries jsonrpc ppx_yojson_conv_lib uutf yojson)
|
||||
(libraries linol_jsonrpc ppx_yojson_conv_lib uutf yojson)
|
||||
(flags :standard -open Linol_jsonrpc)
|
||||
(lint
|
||||
(pps ppx_yojson_conv)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue