()
| 248 | }, [cell.id, channel]); |
| 249 | |
| 250 | const generate = () => { |
| 251 | if (!channel) { |
| 252 | return; |
| 253 | } |
| 254 | |
| 255 | setGenerationType('edit'); |
| 256 | channel.push('ai:generate', { |
| 257 | cellId: cell.id, |
| 258 | prompt, |
| 259 | }); |
| 260 | setCellMode('generating'); |
| 261 | }; |
| 262 | |
| 263 | const aiFixDiagnostics = (diagnostics: string) => { |
| 264 | if (!channel) { |
no test coverage detected