@@ -353,7 +353,7 @@ const startSearchCommand = new StartSearchDefaultSettingsCommand({
353353 precondition : ContextKeyExpr . and ( CONTEXT_SETTINGS_EDITOR ) ,
354354 kbOpts : { primary : KeyMod . CtrlCmd | KeyCode . KEY_F }
355355} ) ;
356- KeybindingsRegistry . registerCommandAndKeybindingRule ( startSearchCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ) ;
356+ startSearchCommand . register ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ;
357357
358358class FocusSearchFromSettingsCommand extends SettingsCommand {
359359
@@ -369,7 +369,7 @@ const focusSearchFromSettingsCommand = new FocusSearchFromSettingsCommand({
369369 precondition : ContextKeyExpr . and ( CONTEXT_SETTINGS_EDITOR , CONTEXT_SETTINGS_FIRST_ROW_FOCUS ) ,
370370 kbOpts : { primary : KeyCode . UpArrow }
371371} ) ;
372- KeybindingsRegistry . registerCommandAndKeybindingRule ( focusSearchFromSettingsCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . workbenchContrib ( ) ) ) ;
372+ focusSearchFromSettingsCommand . register ( KeybindingsRegistry . WEIGHT . workbenchContrib ( ) ) ;
373373
374374
375375class ClearSearchResultsCommand extends SettingsCommand {
@@ -386,7 +386,7 @@ const clearSearchResultsCommand = new ClearSearchResultsCommand({
386386 precondition : CONTEXT_SETTINGS_SEARCH_FOCUS ,
387387 kbOpts : { primary : KeyCode . Escape }
388388} ) ;
389- KeybindingsRegistry . registerCommandAndKeybindingRule ( clearSearchResultsCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ) ;
389+ clearSearchResultsCommand . register ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ;
390390
391391class FocusSettingsFileEditorCommand extends SettingsCommand {
392392
@@ -404,14 +404,14 @@ const focusSettingsFileEditorCommand = new FocusSettingsFileEditorCommand({
404404 precondition : CONTEXT_SETTINGS_SEARCH_FOCUS ,
405405 kbOpts : { primary : KeyCode . DownArrow }
406406} ) ;
407- KeybindingsRegistry . registerCommandAndKeybindingRule ( focusSettingsFileEditorCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ) ;
407+ focusSettingsFileEditorCommand . register ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ;
408408
409409const focusSettingsFromSearchCommand = new FocusSettingsFileEditorCommand ( {
410410 id : SETTINGS_EDITOR_COMMAND_FOCUS_SETTINGS_FROM_SEARCH ,
411411 precondition : CONTEXT_SETTINGS_SEARCH_FOCUS ,
412412 kbOpts : { primary : KeyCode . DownArrow }
413413} ) ;
414- KeybindingsRegistry . registerCommandAndKeybindingRule ( focusSettingsFromSearchCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . workbenchContrib ( ) ) ) ;
414+ focusSettingsFromSearchCommand . register ( KeybindingsRegistry . WEIGHT . workbenchContrib ( ) ) ;
415415
416416class FocusNextSearchResultCommand extends SettingsCommand {
417417
@@ -427,7 +427,7 @@ const focusNextSearchResultCommand = new FocusNextSearchResultCommand({
427427 precondition : CONTEXT_SETTINGS_SEARCH_FOCUS ,
428428 kbOpts : { primary : KeyCode . Enter }
429429} ) ;
430- KeybindingsRegistry . registerCommandAndKeybindingRule ( focusNextSearchResultCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ) ;
430+ focusNextSearchResultCommand . register ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ;
431431
432432class FocusPreviousSearchResultCommand extends SettingsCommand {
433433
@@ -443,7 +443,7 @@ const focusPreviousSearchResultCommand = new FocusPreviousSearchResultCommand({
443443 precondition : CONTEXT_SETTINGS_SEARCH_FOCUS ,
444444 kbOpts : { primary : KeyMod . Shift | KeyCode . Enter }
445445} ) ;
446- KeybindingsRegistry . registerCommandAndKeybindingRule ( focusPreviousSearchResultCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ) ;
446+ focusPreviousSearchResultCommand . register ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ;
447447
448448class EditFocusedSettingCommand extends SettingsCommand {
449449
@@ -459,7 +459,7 @@ const editFocusedSettingCommand = new EditFocusedSettingCommand({
459459 precondition : CONTEXT_SETTINGS_SEARCH_FOCUS ,
460460 kbOpts : { primary : KeyMod . CtrlCmd | KeyCode . US_DOT }
461461} ) ;
462- KeybindingsRegistry . registerCommandAndKeybindingRule ( editFocusedSettingCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ) ;
462+ editFocusedSettingCommand . register ( KeybindingsRegistry . WEIGHT . editorContrib ( ) ) ;
463463
464464class EditFocusedSettingCommand2 extends SettingsCommand {
465465
@@ -476,7 +476,7 @@ const editFocusedSettingCommand2 = new EditFocusedSettingCommand2({
476476 precondition : ContextKeyExpr . and ( CONTEXT_SETTINGS_EDITOR , CONTEXT_SETTINGS_ROW_FOCUS ) ,
477477 kbOpts : { primary : KeyCode . Enter }
478478} ) ;
479- KeybindingsRegistry . registerCommandAndKeybindingRule ( editFocusedSettingCommand2 . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . workbenchContrib ( ) ) ) ;
479+ editFocusedSettingCommand2 . register ( KeybindingsRegistry . WEIGHT . workbenchContrib ( ) ) ;
480480
481481class FocusSettingsListCommand extends SettingsCommand {
482482
@@ -493,7 +493,7 @@ const focusSettingsListCommand = new FocusSettingsListCommand({
493493 precondition : ContextKeyExpr . and ( CONTEXT_SETTINGS_EDITOR , CONTEXT_TOC_ROW_FOCUS ) ,
494494 kbOpts : { primary : KeyCode . Enter }
495495} ) ;
496- KeybindingsRegistry . registerCommandAndKeybindingRule ( focusSettingsListCommand . toCommandAndKeybindingRule ( KeybindingsRegistry . WEIGHT . workbenchContrib ( ) ) ) ;
496+ focusSettingsListCommand . register ( KeybindingsRegistry . WEIGHT . workbenchContrib ( ) ) ;
497497
498498// Preferences menu
499499
0 commit comments