package lsp
LSP protocol implementation in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
jsonrpc-1.7.0.tbz
sha256=ca43b6608366ddf891d7c1e1cc38de2c7f93a6da0511de164959db1f88fc42ed
sha512=43a00604f25bd1d3e93bfd43f1ef9c4cad9aa392c15a5db0c5ba0264f396e7ca6f60a0293467609402e87aeec441a05e7ee2990b37c98dc27b92a22afbebfd02
doc/lsp.stdune/Stdune/User_error/index.html
Module Stdune.User_error
Source
Error meant for humans
User errors are errors that users need to fix themselves in order to make progress. Since these errors are read by users, they should be simple to understand for people who are not familiar with the dune codebase.
The additional Annot.t
is intended to carry extra context for other, non-user-facing purposes (such as data for the RPC).
Source
val raise :
?loc:Stdune__.Loc0.t ->
?hints:User_message.Style.t Pp.t list ->
?annots:Annot.t list ->
User_message.Style.t Pp.t list ->
_
Raise a user error. The arguments are interpreted in the same way as User_message.make
. The first paragraph is prefixed with "Error:".
Source
val make :
?loc:Stdune__.Loc0.t ->
?hints:User_message.Style.t Pp.t list ->
User_message.Style.t Pp.t list ->
User_message.t
Create a user error.
The "Error:" prefix
Returns true
if the message has an explicit location or one embed in the text.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>