Skip to content

Commit 4c91d4d

Browse files
committed
fix: lsp 20
Signed-off-by: peefy <[email protected]>
1 parent 1b73cca commit 4c91d4d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kclvm/tools/src/LSP/src/find_refs.rs

-8
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ pub(crate) fn find_refs_from_def<F: Fn(String) -> Result<(), anyhow::Error>>(
7070
let mut ref_locations = vec![];
7171
for (_, word_index) in &mut *word_index_map.write() {
7272
if let Some(mut locs) = word_index.get(name.as_str()).cloned() {
73-
if locs.len() >= 20 {
74-
let _ = logger(
75-
"Found more than 20 matched symbols, only the first 20 will be processed"
76-
.to_string(),
77-
);
78-
locs = locs[0..20].to_vec();
79-
}
80-
8173
let matched_locs: Vec<Location> = locs
8274
.into_iter()
8375
.filter(|ref_loc| {

0 commit comments

Comments
 (0)