Idea detail
code_actions_ignore_error
reqlan rq/extension/host/features-commands.rq:154
block
done
Summary
A Quick Fix code_actions on a line with diagnostics inserts comment_reference_ignore ( `//rq-ignore-error` ) on the line before the error.
The inserted comment uses the same indent as the error line.
One action is offered per line when that line has one or more diagnostics.
The action is omitted when that line is already suppressed, and when the client asks only for non-quickfix kinds.
Available in `.rq` files and in a comment context in a code file ( references_in_functional_code_comments ).
In `#` comments the action inserts `# //rq-ignore-error` so the line stays a comment.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | reqlan-ignore-error-action.ts, reqlan-code-action-provider.ts, code_actions.rs, register-ignore-error-code-actions.ts, ignore-error-comment-filter.ts, main.ts |
| status | done |
| tests | code-actions.test.ts:offers ignore-error quick fix on a line with a linking error, code-actions.test.ts:omits ignore-error when only refactor is requested, code_actions.rs:offers_ignore_error_quick_fix_on_a_line_with_a_linking_error, code_actions.rs:omits_ignore_error_when_only_refactor_is_requested, ignore-error-action.test.ts:inserts indented ignore comment before the error line, ignore-error-action.test.ts:uses tab indent and CRLF when the error line uses them, ignore-error-action.test.ts:wraps the ignore comment for a hash-comment error line, ignore-error-action.test.ts:inserts at the start of the file for a first-line error, ignore-error-action.test.ts:offers one action per diagnostic line, rq-ignore-error already suppresses the line, ignore-error-code-action.test.ts:accepts reqlan source and comment-reference codes, extension-package.test.ts:extension main registers ignore-error code actions for comment files |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | command_palette | reqlan rq/extension/host/features-commands.rq | code_actions_ignore_error |
| references | code_actions | reqlan rq/extension/language/vsc-primitives.rq | code_actions_ignore_error |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…