Skip to content

Every new pass needs a @CODE region #391

Closed

Description

@amnonma

A code region lets you selectively run or ignore passes with exitpass().
Effectively lets you run multiple analyzers within one analyzer.
A code region lets you set up global information for a pass before executing rules.
@ddehilster

Activity

  1. ddehilster commented on Oct 14, 2026

    @ddehilster
    Member

    Implemented as an opt-in setting in the VS Code extension: VisualText/vscode-nlp#1237. Turn on nlp.newPass.codeRegion, and every new rules pass starts with a @CODE region, ready for setup code or exitpass(). It's off by default, so nothing changes for anyone who doesn't turn it on. I'll close this once that PR ships.

  2. ddehilster commented on Oct 14, 2026

    @ddehilster
    Member

    Done in the VS Code extension (VisualText/vscode-nlp#1237, merged). Turn on the setting nlp.newPass.codeRegion, and every new rules pass starts with a @CODE region, for setup code or exitpass(). It's off by default. It ships with the next vscode-nlp release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions