diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-02-24 00:21:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-24 00:21:09 -0500 |
| commit | 6567dc94a901aaae1b4e5b8e84d48bc72d46ee2e (patch) | |
| tree | ff3674957c66c40e9d4cc5e1fc1c04b353bf6a46 /cli/lsp/config.rs | |
| parent | 76e8e02bba75f23097d28cec13829c2f5cfa4a25 (diff) | |
fix(lsp): import map expansion (#22553)
Diffstat (limited to 'cli/lsp/config.rs')
| -rw-r--r-- | cli/lsp/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs index d0909b926..3d24c8c20 100644 --- a/cli/lsp/config.rs +++ b/cli/lsp/config.rs @@ -1238,12 +1238,12 @@ fn resolve_node_modules_dir(config_file: &ConfigFile) -> Option<PathBuf> { // `nodeModulesDir: true` setting in the deno.json file. This is to // reduce the chance of modifying someone's node_modules directory // without them having asked us to do so. - let explicitly_disabled = config_file.node_modules_dir_flag() == Some(false); + let explicitly_disabled = config_file.json.node_modules_dir == Some(false); if explicitly_disabled { return None; } - let enabled = config_file.node_modules_dir_flag() == Some(true) - || config_file.vendor_dir_flag() == Some(true); + let enabled = config_file.json.node_modules_dir == Some(true) + || config_file.json.vendor == Some(true); if !enabled { return None; } |
