refactor(lsp): remove Documents mutex and require Documents to be mutated to change it (#12747)

This commit is contained in:
David Sherret 2021-11-18 13:50:24 -05:00 committed by GitHub
parent 14f83da221
commit c82ce74133
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 483 additions and 477 deletions

View file

@ -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");