package vscoq-language-server
VSCoq language server
Install
Dune Dependency
Authors
Maintainers
Sources
vscoq-language-server-2.0.3-coq8.18.tar.gz
md5=37688b8df4ccfc920a57552d0ebc0d3a
sha512=0db05bdfc4409cf8e5a43d191220b4ebd47978bcbb6fd41075ee745dd448b75e98677c81657809c30627c875e5fd54fbef180e6d30cb0a8e56ca26cbf8c5adb8
doc/src/vscoq-language-server.lsp/settings.ml.html
Source file settings.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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
(**************************************************************************) (* *) (* VSCoq *) (* *) (* Copyright INRIA and contributors *) (* (see version control and README file for authors & dates) *) (* *) (**************************************************************************) (* *) (* This file is distributed under the terms of the MIT License. *) (* See LICENSE file. *) (* *) (**************************************************************************) module DelegationMode = struct type t = | None | Skip | Delegate let yojson_of_t = function | None -> `String "None" | Skip -> `String "Skip" | Delegate -> `String "Delegate" let t_of_yojson = function | `String "None" -> None | `String "Skip" -> Skip | `String "Delegate" -> Delegate | _ -> Yojson.json_error "invalid value" end module Mode = struct type t = | Continuous | Manual [@@deriving yojson] let yojson_of_t = function | Manual -> `Int 0 | Continuous -> `Int 1 let t_of_yojson = function | `Int 0 -> Manual | `Int 1 -> Continuous | _ -> Yojson.json_error @@ "invalid value " end module Proof = struct type t = { delegation: DelegationMode.t; workers: int option; mode: Mode.t; } [@@deriving yojson] [@@yojson.allow_extra_fields] end module Goals = struct module Messages = struct type t = { full : bool; } [@@deriving yojson] end module Diff = struct module Mode = struct type t = On | Off | Removed let t_of_yojson = function | `String "on" -> On | `String "off" -> Off | `String "removed" -> Removed | _ -> Yojson.json_error "invalid value " let yojson_of_t = function | On -> `String "on" | Off -> `String "off" | Removed -> `String "removed" end type t = { mode: Mode.t; } [@@deriving yojson] [@@yojson.allow_extra_fields] end type t = { diff: Diff.t; messages: Messages.t; } [@@deriving yojson] [@@yojson.allow_extra_fields] end module Completion = struct module RankingAlgoritm = struct type t = | SplitTypeIntersection | StructuredSplitUnification let yojson_of_t = function | SplitTypeIntersection -> `Int 0 | StructuredSplitUnification -> `Int 1 let t_of_yojson = function | `Int 0 -> SplitTypeIntersection | `Int 1 -> StructuredSplitUnification | _ -> Yojson.json_error @@ "invalid value " end type t = { enable: bool; algorithm: RankingAlgoritm.t; unificationLimit: int; atomicFactor: float [@default 5.]; (** Controls how highly specific types are prioritised over generics *) sizeFactor: float [@default 5.]; (** Controls how highly small types are prioritised over larger ones *) } [@@deriving yojson] [@@yojson.allow_extra_fields] end module Diagnostics = struct type t = { enable: bool [@default true]; (** Sets whether diagnostics like errors and highlighting are sent to the client at all. *) full: bool; } [@@deriving yojson] end type t = { proof: Proof.t; goals: Goals.t; completion: Completion.t; diagnostics: Diagnostics.t; } [@@deriving yojson] [@@yojson.allow_extra_fields]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>