• v0.63.0
    ci / checks (push) Successful in 1m54s
    ci / corpus (push) Successful in 36s
    release / build-and-publish (push) Successful in 7m18s
    Stable

    lucio released this 2026-11-09 20:05:17 -08:00 | 38 commits to master since this release

    Format Selection that fits where it stands; comment toggling in VS Code

    (docs/features/selection-formatting; TODO §66.)

    • Format Selection lays out only the block you selected. Selecting an
      always block, a case statement or a few statements used to re-lay the
      whole enclosing module-level item — at the formatter's own depth, so a
      block in a 4-space or tab-indented file moved, and the blank lines at the
      selection's edges were eaten. The new engine
      (vlog_formatter::format_selection) finds the smallest run of sibling
      items or statements the selected lines cover, lays out that run alone and
      puts it back starting at the leading whitespace it already has (tabs
      kept). The parent is not touched. textDocument/rangeFormatting,
      rangesFormatting and the on-type ; all run on it.
    • A parse error elsewhere in the file no longer refuses the request. The
      selection is formatted when the error lies outside it, and refused only
      when it lies inside.
    • How a selection picks its block. Touching a block's first line takes
      the whole block; a selection that starts inside it takes only the
      statements it covers, even when it reaches the closing end; the end
      line alone takes the block it closes. A selection of whole module-level
      items behaves as before.
    • Still verified. Every result passes the whole-file equivalence check
      and a convergence replay, or the buffer is left unchanged; the verifier
      itself is unchanged. CRLF files keep every line ending.
    • The on-type ; now tidies its statement in a buffer whose error is
      elsewhere, and no longer adds a final newline to a file without one.
    • The reply is still one whole-document edit; the CLI's --lines is
      unchanged (whole module-level items).
    • VS Code: Ctrl+/ toggles comments. The extension now declares the
      language's // and /* */ comments, bracket pairs and auto-closing
      pairs for Verilog and SystemVerilog, so Toggle Line Comment and Toggle
      Block Comment work on one line or a selection.
    Downloads