stop builtin crash

This commit is contained in:
Eli Dowling 2023-12-30 05:39:02 +10:00 committed by faldor20
parent 3027fc2284
commit ae27682de7
No known key found for this signature in database
GPG key ID: F2216079B890CD57
3 changed files with 22 additions and 12 deletions

View file

@ -241,6 +241,7 @@ impl AnalyzedDocument {
.map(|a| a.chars().nth(0).unwrap().is_uppercase())
.unwrap_or(false);
if is_module_completion {
//TODO: this doesn't work with builtins for some reason
Some(get_upper_case_completion_items(
position,
symbol_prefix,
@ -283,6 +284,7 @@ impl AnalyzedDocument {
&mut subs.clone(),
module_id,
interns,
exposed_imports,
);
Some(completions)
}