From b802fad5e1fe0cc331610eadf115ef6f3a071ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Thu, 5 Oct 2023 19:43:26 +0200 Subject: [PATCH] feat: add container parameter to service initialize --- src/services.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(),