Skip to content

Commit

Permalink
fix: lsp 20
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Mar 11, 2024
1 parent 1b73cca commit 4c91d4d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kclvm/tools/src/LSP/src/find_refs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ pub(crate) fn find_refs_from_def<F: Fn(String) -> Result<(), anyhow::Error>>(
let mut ref_locations = vec![];
for (_, word_index) in &mut *word_index_map.write() {
if let Some(mut locs) = word_index.get(name.as_str()).cloned() {
if locs.len() >= 20 {
let _ = logger(
"Found more than 20 matched symbols, only the first 20 will be processed"
.to_string(),
);
locs = locs[0..20].to_vec();
}

let matched_locs: Vec<Location> = locs
.into_iter()
.filter(|ref_loc| {
Expand Down

0 comments on commit 4c91d4d

Please sign in to comment.