summaryrefslogtreecommitdiff
path: root/cli/lsp/completions.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-11-18 13:50:24 -0500
committerGitHub <noreply@github.com>2021-11-18 13:50:24 -0500
commitc82ce7413366c49ae44128797f91fe44113c5e8c (patch)
tree7e94cdc815145cd6f1ba16dc44c94c1eef0abc77 /cli/lsp/completions.rs
parent14f83da2210dce53b663581c22d39c98fac1d2f6 (diff)
refactor(lsp): remove `Documents` mutex and require `Documents` to be mutated to change it (#12747)
Diffstat (limited to 'cli/lsp/completions.rs')
-rw-r--r--cli/lsp/completions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lsp/completions.rs b/cli/lsp/completions.rs
index 07857fb48..b23145989 100644
--- a/cli/lsp/completions.rs
+++ b/cli/lsp/completions.rs
@@ -436,7 +436,7 @@ mod tests {
source_fixtures: &[(&str, &str)],
location: &Path,
) -> language_server::StateSnapshot {
- let documents = Documents::new(location);
+ let mut documents = Documents::new(location);
for (specifier, source, version, language_id) in fixtures {
let specifier =
resolve_url(specifier).expect("failed to create specifier");