Skip to content

Commit c636841

Browse files
committed
Refactor checkpoint log copying to correctly format multiline descriptions and use a prefix instead of quotes
1 parent d5b6e60 commit c636841

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ export const checkpoints_command = (params: {
299299
const padded_title = c.title.padEnd(longest_title_length, ' ')
300300
log_lines.push(
301301
`[${date} ${time_zone}] ${padded_title} ${
302-
c.description ? `"${c.description}"` : ''
302+
c.description
303+
? `> ${c.description.replace(/\n/g, '\\n')}`
304+
: ''
303305
}`
304306
)
305307
last_full_hour = current_full_hour

0 commit comments

Comments
 (0)