diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-08-31 19:10:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 19:10:09 +0100 |
commit | c0dcf6a3571ee04b4826c52d1329804e7c2b02c4 (patch) | |
tree | 763e320547c5f6e978e25acee1f1f098cda7f24f /cli/lsp/diagnostics.rs | |
parent | 9d58c896dc11be39727729b74ebe5d5d7bb58767 (diff) |
feat(lsp): enable via config file detection (#20334)
With https://github.com/denoland/vscode_deno/pull/902 for
https://github.com/denoland/vscode_deno/issues/880.
For multi-folder workspaces, note that this only scans the first one and
applies the result to all. That means users would have to still have to
specify `"deno.enable": true/false` for their secondary folders if the
preference is different for those.
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r-- | cli/lsp/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index dea43ad87..f2f45a928 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -1390,7 +1390,7 @@ mod tests { ConfigSnapshot { settings: Settings { workspace: WorkspaceSettings { - enable: true, + enable: Some(true), lint: true, ..Default::default() }, @@ -1466,7 +1466,7 @@ let c: number = "a"; disabled_config.settings.specifiers.insert( specifier.clone(), SpecifierSettings { - enable: false, + enable: Some(false), enable_paths: Vec::new(), code_lens: Default::default(), }, |