code-mirror.autocomplete
Autocomplete.Completion
Represents individual completions.
code-mirror
code-mirror.lint
code-mirror.stream
code-mirror.tooltip
type t
Completion
include Jv.CONV with type t := t
val to_jv : t -> Jv.jv
to_jv reveals the JavaScript implementation.
to_jv
val of_jv : Jv.jv -> t
of_jv hides the JavaScript implementation. Implementations usually do not guarantee type safety.
of_jv
val create : label:string -> ?detail:string -> ?info:string -> ?apply:t -> ?type_:string -> ?boost:int -> unit -> t
Creates a completion.
The label to show in the completion picker.
An optional short piece of information to show after the label.
Additional info to show when the completion is selected.
(todo) How to apply the completion.
The type of the completion. This is used to pick an icon to show for the completion.
See the reference for additional information.