| 15 | } |
| 16 | |
| 17 | function init(signal: AbortSignal): void { |
| 18 | observe( |
| 19 | 'textarea' + not( |
| 20 | // `anchored-position`: Exclude PR review box because it's in a `position:fixed` container; The scroll HAS to appear within the fixed element. |
| 21 | 'anchored-position #pull_request_review_body', |
| 22 | |
| 23 | // `#pull_request_body_ghost`: Special textarea that GitHub just matches to the visible textarea |
| 24 | '#pull_request_body_ghost', |
| 25 | '#pull_request_body_ghost_ruler', |
| 26 | ), |
| 27 | watchTextarea, |
| 28 | {signal}, |
| 29 | ); |
| 30 | } |
| 31 | |
| 32 | void features.add(import.meta.url, { |
| 33 | include: [ |