fix: typo check

This commit is contained in:
blindfs 2025-03-08 21:46:36 +08:00
parent ecb28096f2
commit dcee4e0a87
2 changed files with 7 additions and 2 deletions

View File

@ -85,7 +85,12 @@ impl Completer for ExportableCompletion<'_> {
}) })
.collect::<Vec<String>>() .collect::<Vec<String>>()
}); });
add_suggestion(wrapped_name(name), None, comments, SuggestionKind::Module); add_suggestion(
wrapped_name(name),
Some("Submodule".into()),
comments,
SuggestionKind::Module,
);
} }
} }
for (name, var_id) in &module.constants { for (name, var_id) in &module.constants {

View File

@ -589,7 +589,7 @@ fn exportable_completions() {
let suggestions = completer.complete(completion_str, completion_str.len()); let suggestions = completer.complete(completion_str, completion_str.len());
match_suggestions(&vec!["TAU"], &suggestions); match_suggestions(&vec!["TAU"], &suggestions);
let completion_str = "use 🤔🐘 'fo"; let completion_str = "use 🤔🐘 'foo";
let suggestions = completer.complete(completion_str, completion_str.len()); let suggestions = completer.complete(completion_str, completion_str.len());
match_suggestions(&vec!["foo"], &suggestions); match_suggestions(&vec!["foo"], &suggestions);
} }