Skip to content

Commit

Permalink
feat: can rebind the monaco editor command handler (#12785)
Browse files Browse the repository at this point in the history
The commit improves the extensibility of `MonacoEditorCommandHandlers` so it can be rebinded.

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
  • Loading branch information
kittaakos authored Aug 8, 2023
1 parent 1e16b08 commit f00450f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/monaco/src/browser/monaco-frontend-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
bind(FrontendApplicationContribution).toService(MonacoStatusBarContribution);

bind(MonacoCommandRegistry).toSelf().inSingletonScope();
bind(CommandContribution).to(MonacoEditorCommandHandlers).inSingletonScope();
bind(MonacoEditorCommandHandlers).toSelf().inSingletonScope();
bind(CommandContribution).toService(MonacoEditorCommandHandlers);
bind(MonacoEditorMenuContribution).toSelf().inSingletonScope();
bind(MenuContribution).toService(MonacoEditorMenuContribution);
bind(MonacoKeybindingContribution).toSelf().inSingletonScope();
Expand Down

0 comments on commit f00450f

Please sign in to comment.