Skip to main content

Module completion_items_serde

Module completion_items_serde 

Source
Expand description

Custom deserializer module that accepts either a Vec<String> (legacy bare-string completions) or a Vec<CompletionItem> (new typed shape). Lets plugins call setCompletions(key, ["a", "b"]) and setCompletions(key, [{ value: "a", kind: "history" }]) interchangeably.

Functionsยง

deserialize
serialize