summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-21 14:18:59 -0700
committerGitHub <noreply@github.com>2024-03-21 14:18:59 -0700
commitffbcad3800ef086bad791c1c640b62fd72d60172 (patch)
treef350a54862928e19ba93a75b71a4c4bebcc974f3 /cli/lsp/diagnostics.rs
parent2166aa8fb6be5fdd6d607db587e236de11b6fb91 (diff)
feat(lint): `deno lint --fix` and lsp quick fixes (#22615)
Adds a `--fix` option to deno lint. This currently doesn't work for basically any rules, but we can add them over time to deno lint.
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r--cli/lsp/diagnostics.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs
index fe6904830..7b969b8ab 100644
--- a/cli/lsp/diagnostics.rs
+++ b/cli/lsp/diagnostics.rs
@@ -1691,6 +1691,7 @@ let c: number = "a";
rules: Default::default(),
files: FilePatterns::new_with_base(temp_dir.path().to_path_buf()),
reporter_kind: Default::default(),
+ fix: false,
};
// test enabled