MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / unmountPlugin

Method unmountPlugin

src/lib/acode.js:734–749  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

732 }
733
734 unmountPlugin(id) {
735 if (id in this.#pluginUnmount) {
736 try {
737 this.#pluginUnmount[id]();
738 } catch (err) {
739 console.group(
740 `Error while calling unmount callback for plugin "${id}"`,
741 );
742 console.error(err);
743 console.groupEnd();
744 }
745 fsOperation(Url.join(CACHE_STORAGE, id)).delete();
746 }
747
748 delete appSettings.uiSettings[`plugin-${id}`];
749 }
750
751 registerFormatter(id, extensions, format, displayName) {
752 let exts;

Callers 4

uninstallFunction · 0.80
onToggleEnabledFunction · 0.80
loadPluginFunction · 0.80
index.jsFile · 0.80

Calls 3

fsOperationFunction · 0.85
deleteMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected