()
| 254 | } |
| 255 | |
| 256 | function canCaptureCurrentTarget(): boolean { |
| 257 | if (!currentPayload) { |
| 258 | return false |
| 259 | } |
| 260 | |
| 261 | if (activeTarget === 'code') { |
| 262 | return Boolean(currentPayload.selectedText.trim()) |
| 263 | } |
| 264 | |
| 265 | return true |
| 266 | } |
| 267 | |
| 268 | function updateSettingsPanel(isOpen: boolean): void { |
| 269 | if (!settingsPanel || !toggleSettingsButton) { |
no outgoing calls
no test coverage detected