From 5df735d3dad81feffe598a4561cdcbbe1bd0bd45 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 9 Jun 2023 08:56:11 -0400 Subject: fix(config): do not canonicalize config file path before loading (#19436) I'm unsure why we canonicalize the config file path when loading and the canonicalization is causing issues in #19431 because everything in the lsp is not canonicalized except the config file (actually, the config file is only canonicalized when auto-discovered and not whens pecified). We also don't canonicalize module paths when loading them. Canonicalization was added in https://github.com/denoland/deno/pull/7621 --- cli/args/mod.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'cli/args/mod.rs') diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 6dab0c973..d740b9ab0 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -396,8 +396,6 @@ fn discover_package_json( // `package.json` is ignored in bundle/compile/etc. if let Some(package_json_dir) = flags.package_json_search_dir(current_dir) { - let package_json_dir = - canonicalize_path_maybe_not_exists(&package_json_dir)?; return package_json::discover_from(&package_json_dir, maybe_stop_at); } -- cgit v1.2.3