diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-08-24 11:21:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 11:21:34 +0200 |
commit | f9beb928186f4edb07e07c96b677f14e75c428bb (patch) | |
tree | 4b9b6a3d6151ee2c1525e95678a99eedfc4647b3 /cli/lsp | |
parent | b1ce2e41676ab5bc807a705b072986d9357fece5 (diff) |
refactor: use "deno_config" crate (#20260)
Moved the configuration file to https://github.com/denoland/deno_config
as we will have to use it in other projects.
Diffstat (limited to 'cli/lsp')
-rw-r--r-- | cli/lsp/documents.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index 11fba693f..986c20473 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -1262,13 +1262,10 @@ impl Documents { { imports .into_iter() - .map(|import| { - let graph_import = GraphImport::new( - &import.referrer, - import.imports, - Some(self.get_resolver()), - ); - (import.referrer, graph_import) + .map(|(referrer, imports)| { + let graph_import = + GraphImport::new(&referrer, imports, Some(self.get_resolver())); + (referrer, graph_import) }) .collect() } else { |