@@ -12,12 +12,10 @@ import { IQuickOpenService } from 'vs/platform/quickOpen/common/quickOpen';
1212import { CancellationToken } from 'vs/base/common/cancellation' ;
1313import { KeyCode , KeyMod } from 'vs/base/common/keyCodes' ;
1414import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
15- import { CLOSE_ON_FOCUS_LOST_CONFIG } from 'vs/workbench/browser/quickopen' ;
1615import { computeStyles } from 'vs/platform/theme/common/styler' ;
1716import { IEnvironmentService } from 'vs/platform/environment/common/environment' ;
18- import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService' ;
1917import { IContextKeyService , RawContextKey , IContextKey } from 'vs/platform/contextkey/common/contextkey' ;
20- import { ICommandAndKeybindingRule , KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
18+ import { ICommandAndKeybindingRule , KeybindingWeight , KeybindingsRegistry } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
2119import { inQuickOpenContext , InQuickOpenContextKey } from 'vs/workbench/browser/parts/quickopen/quickopen' ;
2220import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
2321import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility' ;
@@ -48,7 +46,6 @@ export class QuickInputService extends PlatformQuickInputService {
4846 @IEnvironmentService private readonly environmentService : IEnvironmentService ,
4947 @IConfigurationService private readonly configurationService : IConfigurationService ,
5048 @IInstantiationService private readonly instantiationService : IInstantiationService ,
51- @IEditorGroupsService private readonly editorGroupService : IEditorGroupsService ,
5249 @IKeybindingService private readonly keybindingService : IKeybindingService ,
5350 @IContextKeyService private readonly contextKeyService : IContextKeyService ,
5451 @IThemeService themeService : IThemeService ,
@@ -60,11 +57,11 @@ export class QuickInputService extends PlatformQuickInputService {
6057 this . controller = this . _register ( new QuickInputController ( {
6158 idPrefix : 'quickInput_' , // Constant since there is still only one.
6259 container : this . layoutService . container ,
63- ignoreFocusOut : ( ) => this . environmentService . args [ 'sticky-quickopen' ] || ! this . configurationService . getValue ( CLOSE_ON_FOCUS_LOST_CONFIG ) ,
60+ ignoreFocusOut : ( ) => this . environmentService . args [ 'sticky-quickopen' ] || ! this . configurationService . getValue ( 'workbench.quickOpen.closeOnFocusLost' ) ,
6461 isScreenReaderOptimized : ( ) => this . accessibilityService . isScreenReaderOptimized ( ) ,
6562 backKeybindingLabel : ( ) => this . keybindingService . lookupKeybinding ( QuickPickBack . id ) ?. getLabel ( ) || undefined ,
6663 setContextKey : ( id ?: string ) => this . setContextKey ( id ) ,
67- returnFocus : ( ) => this . editorGroupService . activeGroup . focus ( ) ,
64+ returnFocus : ( ) => this . layoutService . focus ( ) ,
6865 createList : < T > (
6966 user : string ,
7067 container : HTMLElement ,
@@ -246,6 +243,16 @@ export const QuickPickBack: ICommandAndKeybindingRule = {
246243 }
247244} ;
248245
246+ KeybindingsRegistry . registerCommandAndKeybindingRule ( QuickPickManyToggle ) ;
247+ KeybindingsRegistry . registerCommandAndKeybindingRule ( QuickPickBack ) ;
248+
249+ registerSingleton ( IQuickInputService , QuickInputService , true ) ;
250+
251+
252+
253+
254+
255+
249256// TODO@Ben delete eventually when quick open is implemented using quick input
250257export class LegacyQuickInputQuickOpenController extends Disposable {
251258
@@ -298,5 +305,3 @@ export class LegacyQuickInputQuickOpenController extends Disposable {
298305}
299306
300307Registry . as < IWorkbenchContributionsRegistry > ( WorkbenchExtensions . Workbench ) . registerWorkbenchContribution ( LegacyQuickInputQuickOpenController , LifecyclePhase . Ready ) ;
301-
302- registerSingleton ( IQuickInputService , QuickInputService , true ) ;
0 commit comments