Skip to content

Commit f00450f

Browse files
authored
feat: can rebind the monaco editor command handler (#12785)
The commit improves the extensibility of `MonacoEditorCommandHandlers` so it can be rebinded. Signed-off-by: Akos Kitta <[email protected]>
1 parent 1e16b08 commit f00450f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/monaco/src/browser/monaco-frontend-module.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
153153
bind(FrontendApplicationContribution).toService(MonacoStatusBarContribution);
154154

155155
bind(MonacoCommandRegistry).toSelf().inSingletonScope();
156-
bind(CommandContribution).to(MonacoEditorCommandHandlers).inSingletonScope();
156+
bind(MonacoEditorCommandHandlers).toSelf().inSingletonScope();
157+
bind(CommandContribution).toService(MonacoEditorCommandHandlers);
157158
bind(MonacoEditorMenuContribution).toSelf().inSingletonScope();
158159
bind(MenuContribution).toService(MonacoEditorMenuContribution);
159160
bind(MonacoKeybindingContribution).toSelf().inSingletonScope();

0 commit comments

Comments
 (0)