diff options
Diffstat (limited to 'cli/lsp/documents.rs')
-rw-r--r-- | cli/lsp/documents.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index b30217bcb..5a94daed7 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -1534,9 +1534,8 @@ mod tests { let temp_dir = TempDir::new(); let cache = LspCache::new(Some(temp_dir.uri())); let config = Config::default(); - let resolver = LspResolver::default() - .with_new_config(&config, &cache, None) - .await; + let resolver = + Arc::new(LspResolver::from_config(&config, &cache, None).await); let mut documents = Documents::default(); documents.update_config(&config, &resolver, &cache, &Default::default()); (documents, cache, temp_dir) @@ -1684,9 +1683,8 @@ console.log(b, "hello deno"); ) .await; - let resolver = LspResolver::default() - .with_new_config(&config, &cache, None) - .await; + let resolver = + Arc::new(LspResolver::from_config(&config, &cache, None).await); documents.update_config(&config, &resolver, &cache, &workspace_files); // open the document @@ -1729,9 +1727,8 @@ console.log(b, "hello deno"); ) .await; - let resolver = LspResolver::default() - .with_new_config(&config, &cache, None) - .await; + let resolver = + Arc::new(LspResolver::from_config(&config, &cache, None).await); documents.update_config(&config, &resolver, &cache, &workspace_files); // check the document's dependencies |