@@ -549,7 +549,7 @@ export interface IEditorOptions {
549549 * Controls whether to focus the inline editor in the peek widget by default.
550550 * Defaults to false.
551551 */
552- peekWidgetFocusInlineEditor ?: boolean ;
552+ peekWidgetDefaultFocus ?: 'tree' | 'editor' ;
553553}
554554
555555export interface IEditorConstructionOptions extends IEditorOptions {
@@ -3160,7 +3160,7 @@ export const enum EditorOption {
31603160 overviewRulerBorder ,
31613161 overviewRulerLanes ,
31623162 parameterHints ,
3163- peekWidgetFocusInlineEditor ,
3163+ peekWidgetDefaultFocus ,
31643164 quickSuggestions ,
31653165 quickSuggestionsDelay ,
31663166 readOnly ,
@@ -3539,9 +3539,17 @@ export const EditorOptions = {
35393539 3 , 0 , 3
35403540 ) ) ,
35413541 parameterHints : register ( new EditorParameterHints ( ) ) ,
3542- peekWidgetFocusInlineEditor : register ( new EditorBooleanOption (
3543- EditorOption . peekWidgetFocusInlineEditor , 'peekWidgetFocusInlineEditor' , false ,
3544- { description : nls . localize ( 'peekWidgetFocusInlineEditor' , "Controls whether to focus the inline editor in the peek widget by default." ) }
3542+ peekWidgetDefaultFocus : register ( new EditorStringEnumOption (
3543+ EditorOption . peekWidgetDefaultFocus , 'peekWidgetDefaultFocus' ,
3544+ 'tree' as 'tree' | 'editor' ,
3545+ [ 'tree' , 'editor' ] as const ,
3546+ {
3547+ enumDescriptions : [
3548+ nls . localize ( 'peekWidgetDefaultFocus.tree' , "Focus the tree when openeing peek" ) ,
3549+ nls . localize ( 'peekWidgetDefaultFocus.editor' , "Focus the editor when opening peek" )
3550+ ] ,
3551+ description : nls . localize ( 'peekWidgetDefaultFocus' , "Controls whether to focus the inline editor or the tree in the peek widget." )
3552+ }
35453553 ) ) ,
35463554 quickSuggestions : register ( new EditorQuickSuggestions ( ) ) ,
35473555 quickSuggestionsDelay : register ( new EditorIntOption (
0 commit comments