Skip to content

Commit a2af49f

Browse files
committed
Refactor checkpoint log formatting to remove pipe delimiters and wrap descriptions in quotes when copying logs to the clipboard
1 parent 1e1bda1 commit a2af49f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/vscode/src/commands/checkpoints-command/checkpoints-command.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,16 @@ export const checkpoints_command = (params: {
290290

291291
if (
292292
last_full_hour !== null &&
293-
last_full_hour !== current_full_hour
293+
last_full_hour != current_full_hour
294294
) {
295295
log_lines.push('')
296296
}
297297

298298
const date = date_obj.format('YYYY-MM-DD HH:mm')
299299
const padded_title = c.title.padEnd(longest_title_length, ' ')
300300
log_lines.push(
301-
`[${date} ${time_zone}] | ${padded_title} | ${
302-
c.description ? c.description : ''
301+
`[${date} ${time_zone}] ${padded_title} ${
302+
c.description ? `"${c.description}"` : ''
303303
}`
304304
)
305305
last_full_hour = current_full_hour

0 commit comments

Comments
 (0)