Skip to content

Commit

Permalink
Bind EditorCommandContribution and EditorMenuContribution toSelf
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bicker <jan.bicker@typefox.io>
  • Loading branch information
jbicker committed Apr 15, 2020
1 parent 62d5323 commit 46f5a08
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/editor/src/browser/editor-frontend-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ export default new ContainerModule(bind => {
bind(EditorManager).toSelf().inSingletonScope();
bind(OpenHandler).toService(EditorManager);

bind(CommandContribution).to(EditorCommandContribution).inSingletonScope();
bind(MenuContribution).to(EditorMenuContribution).inSingletonScope();
bind(EditorCommandContribution).toSelf().inSingletonScope();
bind(CommandContribution).toService(EditorCommandContribution);

bind(EditorMenuContribution).toSelf().inSingletonScope();
bind(MenuContribution).toService(EditorMenuContribution);

bind(StrictEditorTextFocusContext).toSelf().inSingletonScope();
bind(KeybindingContext).toService(StrictEditorTextFocusContext);
Expand Down

0 comments on commit 46f5a08

Please sign in to comment.