From c6366505f6938730488a0ef2ec559e00edc8b89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Tue, 17 Sep 2024 11:20:53 +0200 Subject: [PATCH] fix: use workbench editor worker service with updated worker name --- src/service-override/base.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/service-override/base.ts b/src/service-override/base.ts index 811cec64..126a4196 100644 --- a/src/service-override/base.ts +++ b/src/service-override/base.ts @@ -28,6 +28,8 @@ import { ITrustedDomainService } from 'vs/workbench/contrib/url/browser/trustedD import { TrustedDomainService } from 'vs/workbench/contrib/url/browser/trustedDomainService' import { LabelService } from 'vs/workbench/services/label/common/labelService' import { ILabelService } from 'vs/platform/label/common/label.service' +import { IEditorWorkerService } from 'vs/editor/common/services/editorWorker' +import { WorkbenchEditorWorkerService } from 'vs/workbench/contrib/codeEditor/browser/workbenchEditorWorkerService' import { getEnvironmentOverride } from '../workbench' class BrowserPathServiceOverride extends AbstractPathService { @@ -58,6 +60,8 @@ export default function getServiceOverride (): IEditorOverrideServices { [IWorkingCopyFileService.toString()]: new SyncDescriptor(WorkingCopyFileService, [], false), [IPathService.toString()]: new SyncDescriptor(BrowserPathServiceOverride, [], true), [ITrustedDomainService.toString()]: new SyncDescriptor(TrustedDomainService, [], true), - [ILabelService.toString()]: new SyncDescriptor(LabelService, [], true) + [ILabelService.toString()]: new SyncDescriptor(LabelService, [], true), + [IEditorWorkerService.toString()]: new SyncDescriptor(WorkbenchEditorWorkerService, [], true) + } }