Skip to content

VS Code extension 0.2.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 01:50
· 237 commits to main since this release

Added

  • The SQL count of each template line and property the dev server's renders ran, as inlay hints at the end
    of the line (#188): 6 queries, ⚠ 6× same query for an N+1, 1 query per render on a property's def
    line, with the statements, the component and the render's age in the tooltip. The extension reads the JSON
    lines django-wireview (1.4.0 or later) writes in development to .wireview/render-queries/ beside
    manage.py, following each process's numbered segments as they grow, and keeps the latest render of each
    component class, so a fixed N+1 clears on the next render. A template line is shown only while the file is
    saved and is the source the server's running template was compiled from (a SHA-256 the server writes); a
    property only while the file's stat is the one the server saw, to the nanosecond, and its def is on that
    line. Nothing is shown past wireview.renderQueries.maxAge minutes, while the records read show two
    processes writing over the same span of time (best effort: the server skips repeated renders, so writers
    that overlap can be missed), or in Restricted Mode, where the records are not read. A line of a format major this extension does not know
    is left, and said once in the output channel.
  • Settings wireview.renderQueries.enable, .directory, .maxAge and .mapRelative (for a server in a
    container: match a record by its path relative to the server's BASE_DIR), and the command
    Wireview: Clear Render Queries.