From bb7ee4f4450882419ac46378df882d243eb150da Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Tue, 14 Sep 2021 17:46:51 +0530 Subject: feat(lsp): ignore specific lint for entire file (#12023) --- .../lsp/code_action_ignore_lint_response.json | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'cli/tests/testdata/lsp/code_action_ignore_lint_response.json') diff --git a/cli/tests/testdata/lsp/code_action_ignore_lint_response.json b/cli/tests/testdata/lsp/code_action_ignore_lint_response.json index f5c24ec21..d15fccca9 100644 --- a/cli/tests/testdata/lsp/code_action_ignore_lint_response.json +++ b/cli/tests/testdata/lsp/code_action_ignore_lint_response.json @@ -29,6 +29,36 @@ } } }, + { + "title": "Disable prefer-const for the entire file", + "kind": "quickfix", + "diagnostics": [ + { + "range": { + "start": { "line": 1, "character": 5 }, + "end": { "line": 1, "character": 12 } + }, + "severity": 1, + "code": "prefer-const", + "source": "deno-lint", + "message": "'message' is never reassigned\nUse 'const' instead", + "relatedInformation": [] + } + ], + "edit": { + "changes": { + "file:///a/file.ts": [ + { + "range": { + "start": { "line": 0, "character": 0 }, + "end": { "line": 0, "character": 0 } + }, + "newText": "// deno-lint-ignore-file prefer-const\n" + } + ] + } + } + }, { "title": "Ignore lint errors for the entire file", "kind": "quickfix", -- cgit v1.2.3