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

Method waitForPlugin

src/lib/acode.js:668–679  ·  view source on GitHub ↗
(pluginId)

Source from the content-addressed store, hash-verified

666 }
667
668 waitForPlugin(pluginId) {
669 return new Promise((resolve, reject) => {
670 if (LOADED_PLUGINS.has(pluginId)) {
671 return resolve(true);
672 }
673
674 this.#pluginWatchers[pluginId] = {
675 resolve,
676 reject,
677 };
678 });
679 }
680
681 get exitAppMessage() {
682 const numFiles = editorManager.hasUnsavedFiles();

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected