summaryrefslogtreecommitdiff
path: root/cli/lsp/config.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-08-01 20:49:09 -0400
committerGitHub <noreply@github.com>2023-08-02 00:49:09 +0000
commit1cefa831fd74b14121494045a347024502d74e34 (patch)
treecc7791cf674e427fe4165262db416e6c537e99a3 /cli/lsp/config.rs
parent36ae37604a0ddab4349df6eb6fafb8ae39fd20fc (diff)
feat(unstable): optional `deno_modules` directory (#19977)
Closes #15633
Diffstat (limited to 'cli/lsp/config.rs')
-rw-r--r--cli/lsp/config.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs
index 2438e8a85..b84f63edc 100644
--- a/cli/lsp/config.rs
+++ b/cli/lsp/config.rs
@@ -475,6 +475,12 @@ impl Config {
.and_then(|p| p.maybe_node_modules_dir.as_ref())
}
+ pub fn maybe_deno_modules_dir_path(&self) -> Option<PathBuf> {
+ self
+ .maybe_config_file()
+ .and_then(|c| c.deno_modules_dir_path())
+ }
+
pub fn maybe_config_file(&self) -> Option<&ConfigFile> {
self
.maybe_config_file_info