From 80df9aec1db449e6cc0f4513103aa442b8d43de3 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 5 Jul 2024 17:53:09 -0400 Subject: refactor: move `FileCollector` to deno_config (#24433) --- cli/lsp/config.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cli/lsp/config.rs') diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs index 4b96511c0..3c360b683 100644 --- a/cli/lsp/config.rs +++ b/cli/lsp/config.rs @@ -1299,7 +1299,13 @@ impl ConfigData { } }; - let vendor_dir = config_file.as_ref().and_then(|c| c.vendor_dir_path()); + let vendor_dir = config_file.as_ref().and_then(|c| { + if c.vendor() == Some(true) { + Some(c.specifier.to_file_path().ok()?.parent()?.join("vendor")) + } else { + None + } + }); // Load lockfile let lockfile = config_file.as_ref().and_then(resolve_lockfile_from_config); -- cgit v1.2.3