preview.nvim/lua
Barrett Ruth ea783e9983
fix(compiler): resolve output into ctx before evaluating clean command
Problem: M.clean() passes the raw ctx (no output field) to the
provider's clean function. Built-in presets work around this by
recomputing the output path inline, but custom providers using
ctx.output in their clean function receive nil.

Solution: resolve output_file from provider.output before eval, extend
ctx into resolved_ctx with the output field, and use resolved_ctx when
evaluating clean and cwd — consistent with how M.compile() handles args.
2026-03-03 17:49:50 -05:00
..
preview fix(compiler): resolve output into ctx before evaluating clean command 2026-03-03 17:49:50 -05:00