package coq-lsp
Language Server Protocol native server for Coq
Install
Dune Dependency
Authors
Maintainers
Sources
coq-lsp-0.1.2.v8.16.tbz
sha256=31b83f0908bbabf4079806ce9271a30f7af8fb4e2fd5c81c1ccc3c1e8022f0de
sha512=de9f48cb643944620183243a55a225b33b3b77d2cc2ea26e38377622ea9036e7205634e880d804dd0ae69ce22d321ce4dfbacc94aebb402d1f124d5be348ebca
doc/src/coq-lsp.fleche/io.ml.html
Source file io.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
module CallBack = struct type t = { trace : string -> ?extra:string -> string -> unit ; send_diagnostics : uri:string -> version:int -> Types.Diagnostic.t list -> unit ; send_fileProgress : uri:string -> version:int -> (Types.Range.t * int) list -> unit } let default = { trace = (fun _ ?extra:_ _ -> ()) ; send_diagnostics = (fun ~uri:_ ~version:_ _ -> ()) ; send_fileProgress = (fun ~uri:_ ~version:_ _ -> ()) } let cb = ref default let set t = cb := t end module Log = struct let trace d ?extra m = !CallBack.cb.trace d ?extra m end module Report = struct let diagnostics ~uri ~version d = !CallBack.cb.send_diagnostics ~uri ~version d let fileProgress ~uri ~version d = !CallBack.cb.send_fileProgress ~uri ~version d end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>