(state: RuntimeState | undefined, id: string, persist: boolean)
| 556 | } |
| 557 | |
| 558 | async function activatePluginById(state: RuntimeState | undefined, id: string, persist: boolean) { |
| 559 | if (!state) return false |
| 560 | const plugin = state.plugins_by_id.get(id) |
| 561 | if (!plugin) return false |
| 562 | return activatePluginEntry(state, plugin, persist) |
| 563 | } |
| 564 | |
| 565 | async function deactivatePluginById(state: RuntimeState | undefined, id: string, persist: boolean) { |
| 566 | if (!state) return false |
no test coverage detected