()
| 86 | } |
| 87 | |
| 88 | private setupIPC(): void { |
| 89 | ipcMain.handle('get-plugins', () => this.getPlugins()) |
| 90 | ipcMain.handle('get-all-plugins', () => this.getAllPlugins()) |
| 91 | ipcMain.handle('get-disabled-plugins', () => this.getDisabledPlugins()) |
| 92 | ipcMain.handle('set-plugin-disabled', (_event, pluginPath: string, disabled: boolean) => |
| 93 | this.setPluginDisabled(pluginPath, disabled) |
| 94 | ) |
| 95 | ipcMain.handle('import-plugin', () => this.installer.importPlugin()) |
| 96 | ipcMain.handle('import-dev-plugin', (_event, pluginJsonPath?: string) => |
| 97 | this.devProjects.importDevPlugin(pluginJsonPath) |
| 98 | ) |
| 99 | ipcMain.handle('upsert-dev-project-by-config-path', (_event, pluginJsonPath: string) => |
| 100 | this.devProjects.upsertDevProjectByConfigPath(pluginJsonPath) |
| 101 | ) |
| 102 | ipcMain.handle('get-dev-projects', () => this.devProjects.getDevProjects()) |
| 103 | ipcMain.handle('update-dev-projects-order', (_event, pluginNames: string[]) => |
| 104 | this.devProjects.updateDevProjectsOrder(pluginNames) |
| 105 | ) |
| 106 | ipcMain.handle('remove-dev-project', (_event, pluginName: string) => |
| 107 | this.devProjects.removeDevProject(pluginName) |
| 108 | ) |
| 109 | ipcMain.handle('install-dev-plugin', (_event, pluginName: string) => |
| 110 | this.devProjects.installDevPlugin(pluginName) |
| 111 | ) |
| 112 | ipcMain.handle('uninstall-dev-plugin', (_event, pluginName: string) => |
| 113 | this.devProjects.uninstallDevPlugin(pluginName) |
| 114 | ) |
| 115 | ipcMain.handle('validate-dev-project', (_event, pluginName: string) => |
| 116 | this.devProjects.validateDevProject(pluginName) |
| 117 | ) |
| 118 | ipcMain.handle('select-dev-project-config', (_event, pluginName: string) => |
| 119 | this.devProjects.selectDevProjectConfig(pluginName) |
| 120 | ) |
| 121 | ipcMain.handle( |
| 122 | 'package-dev-project', |
| 123 | (_event, pluginName: string, packagePath?: string, version?: string) => |
| 124 | this.devProjects.packageDevProject(pluginName, packagePath, version) |
| 125 | ) |
| 126 | ipcMain.handle('delete-plugin', (_event, pluginPath: string, options?: DeletePluginOptions) => |
| 127 | this.deletePlugin(pluginPath, options) |
| 128 | ) |
| 129 | ipcMain.handle('get-running-plugins', () => this.getRunningPlugins()) |
| 130 | ipcMain.handle('kill-plugin', (_event, pluginPath: string) => this.killPlugin(pluginPath)) |
| 131 | ipcMain.handle('kill-plugin-and-return', (_event, pluginPath: string) => |
| 132 | this.killPluginAndReturn(pluginPath) |
| 133 | ) |
| 134 | ipcMain.handle('fetch-plugin-market', () => this.market.fetchPluginMarket()) |
| 135 | ipcMain.handle('install-plugin-from-market', (event, plugin: any) => |
| 136 | this.installer.installPluginFromMarket(plugin, event.sender) |
| 137 | ) |
| 138 | ipcMain.handle('cancel-plugin-market-download', (_event, pluginNameOrTaskId: string) => |
| 139 | this.installer.cancelPluginMarketDownload(pluginNameOrTaskId) |
| 140 | ) |
| 141 | ipcMain.handle('get-plugin-readme', (_event, pluginPathOrName: string, pluginName?: string) => |
| 142 | this.getPluginReadme(pluginPathOrName, pluginName) |
| 143 | ) |
| 144 | ipcMain.handle('get-plugin-db-data', (_event, pluginName: string) => |
| 145 | this.getPluginDbData(pluginName) |
no test coverage detected