Skip to content

Commit

Permalink
Fix quick input frontend proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Jun 19, 2023
1 parent a6229dc commit eb3d863
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/monaco/src/browser/monaco-frontend-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ Object.assign(MonacoNls, {

import '../../src/browser/style/index.css';
import { ContainerModule, decorate, injectable, interfaces } from '@theia/core/shared/inversify';
import { MenuContribution, CommandContribution } from '@theia/core/lib/common';
import { MenuContribution, CommandContribution, quickInputServicePath } from '@theia/core/lib/common';
import {
FrontendApplicationContribution, KeybindingContribution,
PreferenceService, PreferenceSchemaProvider, createPreferenceProxy,
PreferenceScope, PreferenceChange, OVERRIDE_PROPERTY_PATTERN, QuickInputService, StylingParticipant
PreferenceScope, PreferenceChange, OVERRIDE_PROPERTY_PATTERN, QuickInputService, StylingParticipant, WebSocketConnectionProvider
} from '@theia/core/lib/browser';
import { TextEditorProvider, DiffNavigatorProvider, TextEditor } from '@theia/editor/lib/browser';
import { StrictEditorTextFocusContext } from '@theia/editor/lib/browser/editor-keybinding-contexts';
Expand Down Expand Up @@ -161,7 +161,10 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
rebind(StrictEditorTextFocusContext).to(MonacoStrictEditorTextFocusContext).inSingletonScope();

bind(MonacoQuickInputImplementation).toSelf().inSingletonScope();
bind(MonacoQuickInputService).toSelf().inSingletonScope();
bind(MonacoQuickInputService).toSelf().inSingletonScope().onActivation(({ container }, quickInputService: MonacoQuickInputService) => {
WebSocketConnectionProvider.createProxy(container, quickInputServicePath, quickInputService);
return quickInputService;
});
bind(QuickInputService).toService(MonacoQuickInputService);

bind(MonacoQuickAccessRegistry).toSelf().inSingletonScope();
Expand Down

0 comments on commit eb3d863

Please sign in to comment.