(extensionId: string)
| 238 | } |
| 239 | |
| 240 | async disableExtension(extensionId: string): Promise<void> { |
| 241 | const extensionIndex = this.state.extensions.findIndex(e => e.id === extensionId); |
| 242 | if (extensionIndex === -1) { |
| 243 | throw new Error(`Extension not found: ${extensionId}`); |
| 244 | } |
| 245 | |
| 246 | const updatedExtensions = [...this.state.extensions]; |
| 247 | updatedExtensions[extensionIndex] = { |
| 248 | ...updatedExtensions[extensionIndex], |
| 249 | isEnabled: false |
| 250 | }; |
| 251 | |
| 252 | this.updateState({ extensions: updatedExtensions }); |
| 253 | |
| 254 | this.emitEvent({ |
| 255 | type: 'extension:disabled', |
| 256 | payload: updatedExtensions[extensionIndex] |
| 257 | }); |
| 258 | } |
| 259 | |
| 260 | async configureExtension(extensionId: string, config: Record<string, any>): Promise<void> { |
| 261 | const extensionIndex = this.state.extensions.findIndex(e => e.id === extensionId); |
nothing calls this directly
no test coverage detected