diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-10-12 00:02:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 00:02:33 +0200 |
commit | f332d72f1653ec03b64a80d8d4949dce5564cc99 (patch) | |
tree | 500e6d5d523f1cf66898985d5b7134c32cc270d8 /cli/tools/lint.rs | |
parent | 5bad8e17734ef8cc1f19df292d553cc1327638f3 (diff) |
fix(lsp): lint diagnostics respect config file (#12338)
This commit fixes problem with LSP where diagnostics coming
from "deno lint" don't respect configuration file.
LSP was changed to store "Option<ConfigFile>", "Option<LintConfig>"
and "Option<FmtConfig>" on "Inner"; as well as storing "Option<LintConfig>"
and "Option<FmtConfig>" on "StateSnapshot".
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'cli/tools/lint.rs')
-rw-r--r-- | cli/tools/lint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/lint.rs b/cli/tools/lint.rs index 5630067ae..a565fee1f 100644 --- a/cli/tools/lint.rs +++ b/cli/tools/lint.rs @@ -484,7 +484,7 @@ fn sort_diagnostics(diagnostics: &mut Vec<LintDiagnostic>) { }); } -fn get_configured_rules( +pub(crate) fn get_configured_rules( maybe_lint_config: Option<&LintConfig>, rules_tags: Vec<String>, rules_include: Vec<String>, |