(state: RuntimeState | undefined, id: string, persist: boolean)
| 563 | } |
| 564 | |
| 565 | async function deactivatePluginById(state: RuntimeState | undefined, id: string, persist: boolean) { |
| 566 | if (!state) return false |
| 567 | const plugin = state.plugins_by_id.get(id) |
| 568 | if (!plugin) return false |
| 569 | return deactivatePluginEntry(state, plugin, persist) |
| 570 | } |
| 571 | |
| 572 | function pluginApi(runtime: RuntimeState, plugin: PluginEntry, scope: PluginScope, base: string): TuiPluginApi { |
| 573 | const api = runtime.api |
no test coverage detected