Merge branch 'main' into fix/compiler-longrunning-open
This commit is contained in:
commit
a5ebccc292
1 changed files with 9 additions and 3 deletions
|
|
@ -396,10 +396,16 @@ function M.clean(bufnr, name, provider, ctx)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local cmd = eval_list(provider.clean, ctx)
|
local output_file = ''
|
||||||
local cwd = ctx.root
|
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
|
if provider.cwd then
|
||||||
cwd = eval_string(provider.cwd, ctx)
|
cwd = eval_string(provider.cwd, resolved_ctx)
|
||||||
end
|
end
|
||||||
|
|
||||||
log.dbg('cleaning buffer %d with provider "%s": %s', bufnr, name, table.concat(cmd, ' '))
|
log.dbg('cleaning buffer %d with provider "%s": %s', bufnr, name, table.concat(cmd, ' '))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue