Function
formatNothingToUndoMessage
(availability: UndoAvailability)
Source from the content-addressed store, hash-verified
| 349 | } |
| 350 | |
| 351 | function formatNothingToUndoMessage(availability: UndoAvailability): string { |
| 352 | if (availability.stoppedAtCompaction) { |
| 353 | return 'Nothing to undo after the last compaction.'; |
| 354 | } |
| 355 | return 'Nothing to undo.'; |
| 356 | } |
| 357 | |
| 358 | function formatPromptCount(count: number): string { |
| 359 | return `${String(count)} ${count === 1 ? 'prompt' : 'prompts'}`; |
Tested by
no test coverage detected