Move
This commit is contained in:
parent
5eb51c1e60
commit
75cb1c1806
@ -52,7 +52,7 @@ pub struct CompletionItem {
|
||||
/// after completion.
|
||||
trigger_call_info: bool,
|
||||
|
||||
/// Score is usefull to pre select or display in better order completion items
|
||||
/// Score is useful to pre select or display in better order completion items
|
||||
score: Option<CompletionScore>,
|
||||
}
|
||||
|
||||
@ -93,6 +93,14 @@ impl fmt::Debug for CompletionItem {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum CompletionScore {
|
||||
/// If only type match
|
||||
TypeMatch,
|
||||
/// If type and name match
|
||||
TypeAndNameMatch,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum CompletionItemKind {
|
||||
Snippet,
|
||||
@ -319,14 +327,6 @@ impl<'a> Into<CompletionItem> for Builder {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum CompletionScore {
|
||||
/// If only type match
|
||||
TypeMatch,
|
||||
/// If type and name match
|
||||
TypeAndNameMatch,
|
||||
}
|
||||
|
||||
/// Represents an in-progress set of completions being built.
|
||||
#[derive(Debug, Default)]
|
||||
pub(crate) struct Completions {
|
||||
|
Loading…
x
Reference in New Issue
Block a user