Skip to content

Commit

Permalink
drop: test preference customization
Browse files Browse the repository at this point in the history
Signed-off-by: vince-fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto committed Aug 11, 2021
1 parent 13618b2 commit b8a90b6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions examples/api-samples/src/browser/api-samples-frontend-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,35 @@
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/

import { ContainerModule } from '@theia/core/shared/inversify';
import { ContainerModule, injectable } from '@theia/core/shared/inversify';
import { bindDynamicLabelProvider } from './label/sample-dynamic-label-provider-command-contribution';
import { bindSampleFilteredCommandContribution } from './contribution-filter/sample-filtered-command-contribution';
import { bindSampleUnclosableView } from './view/sample-unclosable-view-contribution';
import { bindSampleOutputChannelWithSeverity } from './output/sample-output-channel-with-severity';
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 { PreferenceContribution, 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);
bindSampleMenu(bind);
bindSampleFileWatching(bind);
bindVSXCommand(bind);
bindSampleFilteredCommandContribution(bind);
bind(TestWorkspacePreferenceContribution).toSelf().inSingletonScope();
rebind(WorkspacePreferenceContribution).toService(TestWorkspacePreferenceContribution);
});

@injectable()
export class TestWorkspacePreferenceContribution implements PreferenceContribution {
schema = <PreferenceSchema>{
type: 'object',
properties: {}
};
}

0 comments on commit b8a90b6

Please sign in to comment.