Skip to content

Commit afb67e3

Browse files
authored
tests - make sure to have log service earlier (microsoft#194398)
1 parent 709bdaf commit afb67e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/test/browser/workbenchTestServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ export function workbenchInstantiationService(
249249
const environmentService = overrides?.environmentService ? overrides.environmentService(instantiationService) : TestEnvironmentService;
250250
instantiationService.stub(IEnvironmentService, environmentService);
251251
instantiationService.stub(IWorkbenchEnvironmentService, environmentService);
252+
instantiationService.stub(ILogService, new NullLogService());
252253
const contextKeyService = overrides?.contextKeyService ? overrides.contextKeyService(instantiationService) : instantiationService.createInstance(MockContextKeyService);
253254
instantiationService.stub(IContextKeyService, contextKeyService);
254255
instantiationService.stub(IProgressService, new TestProgressService());
@@ -306,7 +307,6 @@ export function workbenchInstantiationService(
306307
instantiationService.stub(IHostService, <IHostService>instantiationService.createInstance(TestHostService));
307308
instantiationService.stub(ITextModelService, <ITextModelService>disposables.add(instantiationService.createInstance(TextModelResolverService)));
308309
instantiationService.stub(ILoggerService, disposables.add(new TestLoggerService(TestEnvironmentService.logsHome)));
309-
instantiationService.stub(ILogService, new NullLogService());
310310
const editorGroupService = new TestEditorGroupsService([new TestEditorGroupView(0)]);
311311
instantiationService.stub(IEditorGroupsService, editorGroupService);
312312
instantiationService.stub(ILabelService, <ILabelService>disposables.add(instantiationService.createInstance(LabelService)));

0 commit comments

Comments
 (0)