You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7d1eeb3
Browse filesBrowse the repository at this point in the historyBrowse files
Refresh preview extension metadata when _extension.yml changes (#15273)
Preview kept the extension metadata read at startup after an
`_extension.yml` edit (such as a brand switch), so renders used the old
values until preview was restarted. Both preview modes now pick up the
change: a context rebuild reads extensions through a fresh extension
context instead of the long-lived cache, and an extension edit triggers
a rebuild before the next render.
- Project preview treats `_extension.yml` edits as config changes, also
when they share a poll event with input edits.
- Single file preview rebuilds its context before the next render after
an extension edit; it keeps reusing the context across renders.
- Context swaps run on the render queue, so cleaning up the old context
cannot race a render in flight. `ServeRenderManager` gains `submit()`
for non-render tasks.
- The preview reload debounce accumulates watch changes instead of
keeping only the last call's arguments.
Only render-time metadata follows the edit. Values read once at startup
(`output-dir`, project type, `lib-dir`) still need a restart.
Fixes#15266
See #14784 for the startup metadata this builds on.
See #14281 for the single file context reuse this keeps.
Assertions come from `tests/asserts.ts` (relative path, e.g. `../asserts.ts` from `tests/unit/`), never from a std assertion module directly; the Runtime Boundary check flags a direct std import in tests. Exports: `assert`, `assertEquals`, `assertThrows`, `assertRejects`, `assertMatch`, `assertObjectMatch`, `assertStringIncludes`, `fail`, `AssertionError`
88
88
89
+
Tests follow the same runtime rule as `src/`: no new `Deno.*` calls, import the equivalent from `src/deno_ral/` (`fs.ts`, `temp.ts`, `path.ts`). The Runtime Boundary check counts `Deno.*` calls in `tests/` against a baseline and fails the PR on an increase. Before accepting an increase, check `src/deno_ral/` and `tests/utils.ts` (`writeFixture`, `withTempDir`) for an existing helper. See `.claude/rules/typescript/deno-ral.md`.
Copy file name to clipboardExpand all lines: news/changelog-1.12.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ All changes included in 1.12:
16
16
### `quarto preview`
17
17
18
18
- ([#14783](https://github.com/quarto-dev/quarto-cli/issues/14783)): Fix `quarto preview` ignoring project metadata contributed by an extension, such as `brand`. Contributed project metadata now applies to every command that builds a project context, `quarto inspect` included. (author: @mcanouil)
19
+
- ([#15266](https://github.com/quarto-dev/quarto-cli/issues/15266)): Fix `quarto preview` keeping the project metadata an extension contributed at startup, such as `brand`, after its `_extension.yml` changes.
0 commit comments