(state: RuntimeState)
| 489 | } |
| 490 | |
| 491 | function listPluginStatus(state: RuntimeState): TuiPluginStatus[] { |
| 492 | return state.plugins.map((plugin) => ({ |
| 493 | id: plugin.id, |
| 494 | source: plugin.meta.source, |
| 495 | spec: plugin.meta.spec, |
| 496 | target: plugin.meta.target, |
| 497 | enabled: plugin.enabled, |
| 498 | active: plugin.scope !== undefined, |
| 499 | })) |
| 500 | } |
| 501 | |
| 502 | async function deactivatePluginEntry(state: RuntimeState, plugin: PluginEntry, persist: boolean) { |
| 503 | plugin.enabled = false |
no outgoing calls
no test coverage detected