fix(history): improve parameter display in get_tool_display_name function (#2822)
Use vim.inspect() for better parameter formatting instead of direct string concatenation
This commit is contained in:
@@ -398,7 +398,7 @@ function M.get_tool_display_name(message)
|
|||||||
param = param:gsub(project_root .. "/?", "")
|
param = param:gsub(project_root .. "/?", "")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
if param then tool_name = native_tool_name .. "(" .. param .. ")" end
|
if param then tool_name = native_tool_name .. "(" .. vim.inspect(param) .. ")" end
|
||||||
end
|
end
|
||||||
|
|
||||||
---@cast tool_name string
|
---@cast tool_name string
|
||||||
|
|||||||
Reference in New Issue
Block a user