package vscoq-language-server
VSCoq language server
Install
Dune Dependency
Authors
Maintainers
Sources
vscoq-language-server-2.2.5.tar.gz
md5=8bc848aaf2ad0fe41a02741e633ad7e3
sha512=eb6c80a3290b1d688ea3b94a3087f204c9f9f03bddd95b21952b02af1dc4de073c1b99baed5a5f6a395e69a27c0d45f6ec181488da62e9f5c6a77d91d752dd5c
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 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
(**************************************************************************) (* *) (* 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. *) (* *) (**************************************************************************) open Ppx_yojson_conv_lib.Yojson_conv.Primitives 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 PointInterpretationMode = struct type t = | Cursor | NextCommand [@@deriving yojson] let yojson_of_t = function | Cursor -> `Int 0 | NextCommand -> `Int 1 let t_of_yojson = function | `Int 0 -> Cursor | `Int 1 -> NextCommand | _ -> Yojson.json_error @@ "invalid value " end module Memory = struct type t = { limit: int; } [@@deriving yojson] end module Proof = struct type t = { delegation: DelegationMode.t; workers: int option; mode: Mode.t; block: bool; pointInterpretationMode: PointInterpretationMode.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; memory: Memory.t; } [@@deriving yojson] [@@yojson.allow_extra_fields]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>