Skip to content

Commit

Permalink
fix filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Apr 1, 2021
1 parent 0a0b237 commit 0dc1702
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/lsp/registries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ use deno_core::ModuleSpecifier;
use deno_runtime::permissions::Permissions;
use log::error;
use lspower::lsp;
use percent_encoding;
use regex::Regex;
use std::collections::HashMap;
use std::collections::HashSet;
Expand Down Expand Up @@ -375,6 +374,7 @@ impl ModuleRegistry {
label,
kind: Some(lsp::CompletionItemKind::Folder),
filter_text,
sort_text: Some("1".to_string()),
text_edit,
..Default::default()
},
Expand Down Expand Up @@ -439,6 +439,7 @@ impl ModuleRegistry {
kind,
detail,
filter_text,
sort_text: Some("1".to_string()),
text_edit,
command,
..Default::default()
Expand Down Expand Up @@ -476,6 +477,7 @@ impl ModuleRegistry {
label,
kind,
filter_text,
sort_text: Some("1".to_string()),
text_edit,
..Default::default()
},
Expand Down Expand Up @@ -514,7 +516,7 @@ impl ModuleRegistry {
label: origin.clone(),
kind: Some(lsp::CompletionItemKind::Folder),
detail: Some("(registry)".to_string()),
filter_text: Some(origin),
sort_text: Some("1".to_string()),
text_edit,
..Default::default()
})
Expand Down

0 comments on commit 0dc1702

Please sign in to comment.