Merge branch 'main' into fix/compiler-longrunning-open

This commit is contained in:
Barrett Ruth 2026-03-03 18:00:06 -05:00 committed by GitHub
commit a5ebccc292
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -396,10 +396,16 @@ function M.clean(bufnr, name, provider, ctx)
return
end
local cmd = eval_list(provider.clean, ctx)
local cwd = ctx.root
local output_file = ''
if provider.output then
output_file = eval_string(provider.output, ctx)
end
local resolved_ctx = vim.tbl_extend('force', ctx, { output = output_file })
local cmd = eval_list(provider.clean, resolved_ctx)
local cwd = resolved_ctx.root
if provider.cwd then
cwd = eval_string(provider.cwd, ctx)
cwd = eval_string(provider.cwd, resolved_ctx)
end
log.dbg('cleaning buffer %d with provider "%s": %s', bufnr, name, table.concat(cmd, ' '))