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 the suppression pipeline and template-phase diagnostic flow, then patch it and run focused plus broader tests.
- Assistant
The failure is in the existing pre-scan: it registers only line-based directives before
run_on_template, while ignore regions and forget ranges are still discovered afterward. I’m aligning that pre-scan with the traversal’s exact boundary semantics so closing directives and subsequent diagnostics don’t get over-suppressed. - Assistant
The focused suite exposed an AST nuance in the boundary regression case.
@vize:forgetand unmatched-end behavior pass; I’m inspecting the two remaining diagnostic locations to distinguish a range calculation issue from duplicate reporting during nested callbacks. - Assistant
The boundary issue came from comment line metadata being unreliable after the first line; diagnostics already derive lines from byte offsets. I switched directive boundaries to that same offset-based calculation, and the focused suppression tests now pass, including the later unrelated diagnostic and unmatched
ignore-endcases.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.