MCPcopy Create free account
hub / github.com/GCWing/BitFun / disableExtension

Method disableExtension

src/web-ui/src/app/services/AppManager.ts:240–258  ·  view source on GitHub ↗
(extensionId: string)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

updateStateMethod · 0.95
emitEventMethod · 0.95

Tested by

no test coverage detected