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 diagnostic and suppression pipeline, then add focused regression coverage for template-phase rules before running the relevant test suite.
- Assistant
The issue is in the existing pre-scan: it registers line-based directives before template callbacks, but deliberately omits region and next-element suppression. I’m preserving traversal-time semantics by making those early ranges temporary; otherwise a pre-scan could accidentally suppress an earlier node sharing the directive’s line.
- Assistant
The focused regressions now pass, including suppression ending correctly before a later duplicate-condition diagnostic and an unmatched
ignore-endremaining a no-op. I also found directive line metadata was unreliable for multiline templates, so boundaries now derive from byte offsets—the same source of truth used for diagnostic lines.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.