remove unused CompletionScore enum
This commit is contained in:
parent
3679821eea
commit
9ee3914c61
@ -87,8 +87,8 @@ pub use crate::{
|
||||
pub use hir::{Documentation, Semantics};
|
||||
pub use ide_assists::{Assist, AssistConfig, AssistId, AssistKind};
|
||||
pub use ide_completion::{
|
||||
CompletionConfig, CompletionItem, CompletionItemKind, CompletionRelevance, CompletionScore,
|
||||
ImportEdit, InsertTextFormat,
|
||||
CompletionConfig, CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit,
|
||||
InsertTextFormat,
|
||||
};
|
||||
pub use ide_db::{
|
||||
base_db::{
|
||||
|
@ -122,14 +122,6 @@ impl fmt::Debug for CompletionItem {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq)]
|
||||
pub enum CompletionScore {
|
||||
/// If only type match
|
||||
TypeMatch,
|
||||
/// If type and name match
|
||||
TypeAndNameMatch,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Default)]
|
||||
pub struct CompletionRelevance {
|
||||
/// This is set in cases like these:
|
||||
|
@ -23,10 +23,7 @@ use crate::{completions::Completions, context::CompletionContext, item::Completi
|
||||
|
||||
pub use crate::{
|
||||
config::CompletionConfig,
|
||||
item::{
|
||||
CompletionItem, CompletionItemKind, CompletionRelevance, CompletionScore, ImportEdit,
|
||||
InsertTextFormat,
|
||||
},
|
||||
item::{CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit, InsertTextFormat},
|
||||
};
|
||||
|
||||
//FIXME: split the following feature into fine-grained features.
|
||||
|
Loading…
x
Reference in New Issue
Block a user