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 how suppression metadata and template-phase diagnostics flow through the analyzer, then patch the narrow integration point and add regression coverage for region, forget, unmatched, and boundary behavior.
- Assistant
The current pre-scan only handles line-based directives. Region directives cannot simply be added to it unchanged: replaying them during traversal would leave duplicate open ranges and incorrectly suppress later diagnostics. I’m aligning the pre-scan with traversal order and making suppression registration single-pass while keeping directive warnings in their existing phase.
- Assistant
The new template-phase cases confirm
@vize:forgetworks, but the first region implementation exposed a line-coordinate mismatch when a region is closed. I’m inspecting the emitted locations and will correct the boundary representation without weakening the later-diagnostic guard. - Assistant
The suppression pre-scan now uses byte-offset-derived lines, which preserves closed-region boundaries even though comment AST line fields are not reliable after transformation. The focused regressions and all 1,020 crate tests pass; I’m finishing with lint checks.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.