Vize suppression comments do not suppress template-phase diagnostics @vize:ignore-start…
- User
Vize suppression comments do not suppress template-phase diagnostics
@vize:ignore-start/@vize:ignore-endregions and@vize:forgetmust suppress matching diagnostics even when the affected rule runs during the template phase. Suppression boundaries, unmatched directives, and later unrelated diagnostics must retain their normal behavior.Interface
No new interfaces are introduced.
- Assistant
I’ll trace suppression handling across template and later phases, add focused regression coverage, then run the relevant test suite.
- Assistant
The failure is in the existing pre-scan: it registers only
expectedandlevel, explicitly leaving region and one-node suppressions until traversal—after template callbacks have already emitted. I’m checking AST ordering and directive diagnostics so the fix doesn’t alter unmatched-boundary behavior. - Assistant
The pre-scan now derives directive lines from byte offsets (comment nodes were reporting stale line metadata), and suppression state is registered exactly once. I’ve added template-phase tests for bounded regions, one-element
forget, later diagnostics, and an unmatched end directive. - Assistant
The full crate suite passes (1,020 tests). I’m making one final compatibility refinement: after template callbacks, the pre-scanned state will be cleared and directives replayed in normal traversal order, preserving same-line boundary and directive-warning behavior exactly.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.