1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00
denoland-deno/cli/tests/lsp/code_action_ignore_lint_response.json
2021-06-21 16:43:35 +10:00

62 lines
1.5 KiB
JSON

[
{
"title": "Disable prefer-const for this line",
"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": 1, "character": 0 },
"end": { "line": 1, "character": 0 }
},
"newText": "// deno-lint-ignore prefer-const\n"
}
]
}
}
},
{
"title": "Ignore lint errors 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\n"
}
]
}
}
}
]