From 77ec9fb61fe28d9fe9c8eb3463374450bab67ac4 Mon Sep 17 00:00:00 2001 From: vince-fugnitto Date: Wed, 11 Aug 2021 09:16:55 -0400 Subject: [PATCH] drop: test preference customization Signed-off-by: vince-fugnitto --- .../src/browser/api-samples-frontend-module.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/api-samples/src/browser/api-samples-frontend-module.ts b/examples/api-samples/src/browser/api-samples-frontend-module.ts index 10a3ba15d7ecc..e71ae32698d08 100644 --- a/examples/api-samples/src/browser/api-samples-frontend-module.ts +++ b/examples/api-samples/src/browser/api-samples-frontend-module.ts @@ -22,10 +22,12 @@ import { bindSampleOutputChannelWithSeverity } from './output/sample-output-chan import { bindSampleMenu } from './menu/sample-menu-contribution'; import { bindSampleFileWatching } from './file-watching/sample-file-watching-contribution'; import { bindVSXCommand } from './vsx/sample-vsx-command-contribution'; +import { WorkspacePreferenceContribution } from '@theia/workspace/lib/browser'; +import { PreferenceSchema } from '@theia/core/lib/browser'; import '../../src/browser/style/branding.css'; -export default new ContainerModule(bind => { +export default new ContainerModule((bind, unbind, isBound, rebind) => { bindDynamicLabelProvider(bind); bindSampleUnclosableView(bind); bindSampleOutputChannelWithSeverity(bind); @@ -33,4 +35,10 @@ export default new ContainerModule(bind => { bindSampleFileWatching(bind); bindVSXCommand(bind); bindSampleFilteredCommandContribution(bind); + rebind(WorkspacePreferenceContribution).toConstantValue({ + schema: { + type: 'object', + properties: {} + } + }); });