diff --git a/src/services.ts b/src/services.ts index 378289c5..c07a1d16 100644 --- a/src/services.ts +++ b/src/services.ts @@ -13,9 +13,9 @@ import getFileServiceOverride from './service-override/files' import getQuickAccessOverride from './service-override/quickaccess' import { serviceInitializedBarrier, startup } from './lifecycle' -export async function initialize (overrides: IEditorOverrideServices): Promise { +export async function initialize (overrides: IEditorOverrideServices, container?: HTMLElement): Promise { const instantiationService = StandaloneServices.initialize({ - ...getLayoutServiceOverride(), // Always override layout service to break cyclic dependency with ICodeEditorService + ...getLayoutServiceOverride(container), // Always override layout service to break cyclic dependency with ICodeEditorService ...getEnvironmentServiceOverride(), ...getExtensionsServiceOverride(), ...getFileServiceOverride(),