Skip to content

Commit f6feef2

Browse files
JackLianliujuping
authored andcommitted
fix: plugin context, enhancePluginContextHook not working
1 parent 335314a commit f6feef2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,6 @@
6060
},
6161
"resolutions": {
6262
"@builder/babel-preset-ice": "1.0.1"
63-
}
64-
}
63+
},
64+
"repository": "git@github.com:alibaba/lowcode-engine.git"
65+
}

packages/designer/src/plugin/plugin-context.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default class PluginContext implements ILowCodePluginContext, ILowCodePlu
4141
options: IPluginContextOptions,
4242
contextApiAssembler: ILowCodePluginContextApiAssembler,
4343
) {
44+
contextApiAssembler.assembleApis(this);
4445
this.plugins = plugins;
4546
const { pluginName = 'anonymous' } = options;
4647
this.logger = getLogger({ level: 'warn', bizName: `designer:plugin:${pluginName}` });
@@ -49,8 +50,6 @@ export default class PluginContext implements ILowCodePluginContext, ILowCodePlu
4950
if (enhancePluginContextHook) {
5051
enhancePluginContextHook(this);
5152
}
52-
53-
contextApiAssembler.assembleApis(this);
5453
}
5554

5655
setPreference(

0 commit comments

Comments
 (0)