From f332d72f1653ec03b64a80d8d4949dce5564cc99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 12 Oct 2021 00:02:33 +0200 Subject: 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", "Option" and "Option" on "Inner"; as well as storing "Option" and "Option" on "StateSnapshot". Co-authored-by: Kitson Kelly --- cli/tools/lint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tools') 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) { }); } -fn get_configured_rules( +pub(crate) fn get_configured_rules( maybe_lint_config: Option<&LintConfig>, rules_tags: Vec, rules_include: Vec, -- cgit v1.2.3