package coq-lsp
Language Server Protocol native server for Coq
Install
Dune Dependency
Authors
Maintainers
Sources
coq-lsp-0.1.7.8.17.tbz
sha256=efb85d6656abfd26d2c6fd5e69c9b6428b72679d13ee34c493b4253e345b1c8f
sha512=71a47460bab8781bc9f24bae0369b463a9d527a96f1a32eb5752172316f1bdc1941e0430e79d775b61d854a7306ba8f97707c4e406d02bdf8b2ad57877c5e690
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 31 32 33 34 35 36 37 38 39 40 41
module CallBack = struct type t = { trace : string -> ?extra:string -> string -> unit ; message : lvl:int -> message:string -> unit ; diagnostics : uri:Lang.LUri.File.t -> version:int -> Lang.Diagnostic.t list -> unit ; fileProgress : uri:Lang.LUri.File.t -> version:int -> Progress.Info.t list -> unit } let default = { trace = (fun _ ?extra:_ _ -> ()) ; message = (fun ~lvl:_ ~message:_ -> ()) ; diagnostics = (fun ~uri:_ ~version:_ _ -> ()) ; 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 let feedback feedback = if not (CList.is_empty feedback) then (* Put feedbacks content here? *) let extra = None in !CallBack.cb.trace "feedback" ?extra "feedback received in non-user facing place" end module Report = struct let message ~io ~lvl ~message = io.CallBack.message ~lvl ~message let diagnostics ~io ~uri ~version d = io.CallBack.diagnostics ~uri ~version d let fileProgress ~io ~uri ~version d = io.CallBack.fileProgress ~uri ~version d let perfData ~io:_ ~uri:_ ~version:_ _ = () end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>