From f9beb928186f4edb07e07c96b677f14e75c428bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 24 Aug 2023 11:21:34 +0200 Subject: 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. --- cli/lsp/documents.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'cli/lsp') 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 { -- cgit v1.2.3