diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-08-12 15:45:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-12 15:45:27 +0100 |
commit | 9bdab6fb6b93eb43b1930f40987fa4997287f9c8 (patch) | |
tree | 127e361385f30d3370f105cad14ad1a902fa3a03 /cli/lsp/completions.rs | |
parent | 56e8ed5eb1a6f2880c96fc8f08e35a6dd83aad8b (diff) |
fix(lsp): directly use file referrer when loading document (#24997)
Diffstat (limited to 'cli/lsp/completions.rs')
-rw-r--r-- | cli/lsp/completions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/completions.rs b/cli/lsp/completions.rs index 88900ceef..7e0705e99 100644 --- a/cli/lsp/completions.rs +++ b/cli/lsp/completions.rs @@ -858,8 +858,8 @@ mod tests { .global() .set(&specifier, HashMap::default(), source.as_bytes()) .expect("could not cache file"); - let document = - documents.get_or_load(&specifier, &temp_dir.uri().join("$").unwrap()); + let document = documents + .get_or_load(&specifier, Some(&temp_dir.uri().join("$").unwrap())); assert!(document.is_some(), "source could not be setup"); } documents |