/// 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>,
}
}
}
+#[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,
}
}
-#[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 {