package coq-lsp
Language Server Protocol native server for Coq
Install
Dune Dependency
Authors
Maintainers
Sources
coq-lsp-0.1.8.8.17.tbz
sha256=d825cca28cff503fb23906245ebeb0a41fc6497b21e4538df7a3450e705129e6
sha512=f2351f6cc81ebaef77e46b1f72bcbb4397f5433eabe3b64ca9ee72423bc251d016ae51ac4b7b35d66bdceee6295f2feb799ea82290fd467933ff25d78844c972
doc/coq-lsp.fleche/Fleche/Doc/index.html
Module Fleche.Doc
Source
Source
type t = private {
uri : Lang.LUri.File.t;
version : int;
contents : Contents.t;
toc : Lang.Range.t CString.Map.t;
root : Coq.State.t;
nodes : Node.t list;
diags_dirty : bool;
completed : Completion.t;
}
A Flèche document is basically a node list
, which is a crude form of a meta-data map Range.t -> data
, where for now data
is the contents of Node.t
.
Return the list of all asts in the doc
Return the list of all diags in the doc
Source
val create :
state:Coq.State.t ->
workspace:Coq.Workspace.t ->
uri:Lang.LUri.File.t ->
version:int ->
raw:string ->
(t, Loc.t) Coq.Protect.R.t
Create a new Coq document, this is cached!
Update the contents of a document, updating the right structures for incremental checking.
check ~io ~target ~doc ()
, check document doc
, target
will have Flèche stop after the point specified there has been reached. Output functions are in the io
record, used to send partial updates.
save ~doc
will save doc
.vo file. It will fail if proofs are open, or if the document completion status is not Yes
Source
val create_failed_permanent :
state:Coq.State.t ->
uri:Lang.LUri.File.t ->
version:int ->
raw:string ->
t Contents.R.t
This is internal, to workaround the Coq multiple-docs problem
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>