MCPcopy Create free account
hub / github.com/DTStack/molecule / load

Method load

src/services/extensionService.ts:172–183  ·  view source on GitHub ↗
(extensions: IExtension[])

Source from the content-addressed store, hash-verified

170 }
171
172 public load(extensions: IExtension[]) {
173 try {
174 // First add the extensions
175 const unloadExtensions = this.add(extensions);
176 if (!unloadExtensions) return;
177
178 // Then activate
179 this.activate(unloadExtensions);
180 } catch (e) {
181 logger.error(ErrorMsg.LoadExtensionFail, e);
182 }
183 }
184
185 public loadContributes(contributes: IContribute) {
186 const contributeKeys = Object.keys(contributes);

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
activateMethod · 0.95

Tested by

no test coverage detected