summaryrefslogtreecommitdiff
path: root/cli/lsp/config.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-08 10:12:10 -0400
committerGitHub <noreply@github.com>2024-07-08 14:12:10 +0000
commit86010bec092d074b161800da06149cfb79fb9f4b (patch)
tree78ab91b1fffc53ff8a56fc86e2c6f0459b21a129 /cli/lsp/config.rs
parent1e97f0f1487d27b69d85ebe8e9d84c21af1d9dde (diff)
fix(workspace): better cli file argument handling (#24447)
Closes https://github.com/denoland/deno/issues/24422
Diffstat (limited to 'cli/lsp/config.rs')
-rw-r--r--cli/lsp/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs
index 3c360b683..3fded336b 100644
--- a/cli/lsp/config.rs
+++ b/cli/lsp/config.rs
@@ -1232,7 +1232,7 @@ impl ConfigData {
.and_then(|config_file| {
config_file
.to_fmt_config()
- .and_then(|o| FmtOptions::resolve(o, &Default::default(), None))
+ .map(|o| FmtOptions::resolve(o, &Default::default()))
.inspect_err(|err| {
lsp_warn!(" Couldn't read formatter configuration: {}", err)
})
@@ -1260,7 +1260,7 @@ impl ConfigData {
.and_then(|config_file| {
config_file
.to_lint_config()
- .and_then(|o| LintOptions::resolve(o, Default::default(), None))
+ .map(|o| LintOptions::resolve(o, &Default::default()))
.inspect_err(|err| {
lsp_warn!(" Couldn't read lint configuration: {}", err)
})