mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 11:01:54 +00:00
98a2ab0686
This PR changes v0.0.7 of the extension API to v0.1.0. We had a false-start in releasing v0.0.7, which has since been yanked, so we need a new version number. We'll publish v0.1.0 to crates.io once the Preview build is out tomorrow. We're incrementing the minor version so that we have some leeway in putting out patch releases of the crate within a given extension API release. Release Notes: - N/A
83 lines
1.5 KiB
Text
83 lines
1.5 KiB
Text
interface lsp {
|
|
/// An LSP completion.
|
|
record completion {
|
|
label: string,
|
|
detail: option<string>,
|
|
kind: option<completion-kind>,
|
|
insert-text-format: option<insert-text-format>,
|
|
}
|
|
|
|
/// The kind of an LSP completion.
|
|
variant completion-kind {
|
|
text,
|
|
method,
|
|
function,
|
|
%constructor,
|
|
field,
|
|
variable,
|
|
class,
|
|
%interface,
|
|
module,
|
|
property,
|
|
unit,
|
|
value,
|
|
%enum,
|
|
keyword,
|
|
snippet,
|
|
color,
|
|
file,
|
|
reference,
|
|
folder,
|
|
enum-member,
|
|
constant,
|
|
struct,
|
|
event,
|
|
operator,
|
|
type-parameter,
|
|
other(s32),
|
|
}
|
|
|
|
/// Defines how to interpret the insert text in a completion item.
|
|
variant insert-text-format {
|
|
plain-text,
|
|
snippet,
|
|
other(s32),
|
|
}
|
|
|
|
/// An LSP symbol.
|
|
record symbol {
|
|
kind: symbol-kind,
|
|
name: string,
|
|
}
|
|
|
|
/// The kind of an LSP symbol.
|
|
variant symbol-kind {
|
|
file,
|
|
module,
|
|
namespace,
|
|
%package,
|
|
class,
|
|
method,
|
|
property,
|
|
field,
|
|
%constructor,
|
|
%enum,
|
|
%interface,
|
|
function,
|
|
variable,
|
|
constant,
|
|
%string,
|
|
number,
|
|
boolean,
|
|
array,
|
|
object,
|
|
key,
|
|
null,
|
|
enum-member,
|
|
struct,
|
|
event,
|
|
operator,
|
|
type-parameter,
|
|
other(s32),
|
|
}
|
|
}
|