@@ -22,8 +22,9 @@ import { IEditorDocumentModelService } from '@ali/ide-editor/lib/browser';
2222import { EditorDocumentModelServiceImpl } from '@ali/ide-editor/lib/browser/doc-model/editor-document-model-service' ;
2323import { EditorDocumentModel } from '@ali/ide-editor/lib/browser/doc-model/editor-document-model' ;
2424import * as os from 'os' ;
25+ import { IPluginConfig } from '@alipay/alex-plugin' ;
2526
26- import { modules } from '../core/editor/modules' ;
27+ import { getModules } from '../core/editor/modules' ;
2728import { mergeConfig , themeStorage } from '../core/utils' ;
2829import { EditorLayoutComponent , getEditorLayoutConfig } from '../core/layout' ;
2930import { IConfig , IAppInstance } from './types' ;
@@ -32,9 +33,11 @@ import { logPv } from '../core/tracert';
3233export { SlotLocation , SlotRenderer , BoxPanel , SplitPanel } ;
3334
3435const getDefaultAppConfig = ( ) : IAppOpts => ( {
35- modules,
36+ modules : getModules ( ) ,
3637 useCdnIcon : true ,
3738 noExtHost : true ,
39+ extWorkerHost : __WORKER_HOST__ ,
40+ webviewEndpoint : __WEBVIEW_ENDPOINT__ ,
3841 defaultPreferences : {
3942 'general.theme' : 'ide-light' ,
4043 'application.confirmExit' : 'never' ,
@@ -141,6 +144,11 @@ export function createEditor({ appConfig, runtimeConfig }: IConfig): IAppInstanc
141144 useValue : runtimeConfig ,
142145 } ) ;
143146
147+ app . injector . addProviders ( {
148+ token : IPluginConfig ,
149+ useValue : customConfig . plugins ,
150+ } ) ;
151+
144152 if ( runtimeConfig . reporter ) {
145153 app . injector . addProviders ( {
146154 token : IReporter ,
0 commit comments