Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: fix plugin lazy loading not working (#4668)

Wenzhao Hu9702222d58ac
diff --git a/packages/core/src/services/plugin/plugin.service.ts b/packages/core/src/services/plugin/plugin.service.ts
index 3d1aa31387..3241705cd6 100644
--- a/packages/core/src/services/plugin/plugin.service.ts
+++ b/packages/core/src/services/plugin/plugin.service.ts
@@ -179,6 +179,7 @@ export class PluginService implements IDisposable {
});
this._loadFromPlugins(allPluginsOfThisType);
+ this._loadedPluginTypes.add(type);
}
private _assertPluginValid(ctor: PluginCtor<Plugin>): void {