mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
refactor(lsp): remove Documents
mutex and require Documents
to be mutated to change it (#12747)
This commit is contained in:
parent
14f83da221
commit
c82ce74133
5 changed files with 483 additions and 477 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue