Return whether a diff row can be used as an inline user-note target.
(row: DiffRow)
| 29 | |
| 30 | /** Return whether a diff row can be used as an inline user-note target. */ |
| 31 | function isAddNoteTargetRow(row: DiffRow): row is AddNoteTargetRow { |
| 32 | return row.type === "split-line" || row.type === "stack-line"; |
| 33 | } |
| 34 | |
| 35 | /** Resolve the note insertion target represented by a visible add-note affordance. */ |
| 36 | function addNoteAffordanceForRow(row: AddNoteTargetRow): ActiveAddNoteAffordance { |