Skip to content

Commit

Permalink
feat(ui): change log line number formatting in tail output (#718)
Browse files Browse the repository at this point in the history
I think this has better affordance and better indicates that the log is
truncated to a single line and can actually be expanded.
  • Loading branch information
williamboman authored Dec 2, 2022
1 parent 4a679b7 commit 4a90879
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/mason/ui/components/main/package_list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ local function InstallingPackageComponent(pkg, state)
local pkg_state = state.packages.states[pkg.name]
local current_state = pkg_state.is_terminated and p.Comment " (cancelling)" or p.none ""
local tail = pkg_state.short_tailed_output
and ("▶ (#" .. #pkg_state.tailed_output .. ") " .. pkg_state.short_tailed_output)
and ("▶ # [%d/%d] %s"):format(
#pkg_state.tailed_output,
#pkg_state.tailed_output,
pkg_state.short_tailed_output
)
or ""
return Ui.Node {
Ui.HlTextNode {
Expand Down

0 comments on commit 4a90879

Please sign in to comment.