remove unicode-ident dependency
This commit is contained in:
parent
91581becac
commit
a743903cf0
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -715,7 +715,6 @@ dependencies = [
|
||||
"syntax",
|
||||
"test-utils",
|
||||
"text-edit",
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -17,7 +17,6 @@ itertools = "0.10.5"
|
||||
|
||||
once_cell = "1.17.0"
|
||||
smallvec.workspace = true
|
||||
unicode-ident = "1.0.0"
|
||||
|
||||
|
||||
# local deps
|
||||
|
@ -437,8 +437,8 @@ pub(crate) fn build(self, db: &RootDatabase) -> CompletionItem {
|
||||
// `PartialOrd` because it has an alias of ">".
|
||||
.filter(|alias| {
|
||||
let mut chars = alias.chars();
|
||||
chars.next().is_some_and(unicode_ident::is_xid_start)
|
||||
&& chars.all(unicode_ident::is_xid_continue)
|
||||
chars.next().is_some_and(char::is_alphabetic)
|
||||
&& chars.all(|c| c.is_alphanumeric() || c == '_')
|
||||
})
|
||||
// Deliberately concatenated without separators as adding separators e.g.
|
||||
// `alias1, alias2` results in LSP clients continuing to display the completion even
|
||||
|
Loading…
Reference in New Issue
Block a user