@@ -125,61 +125,61 @@ function validateEditorPartOptions(options: IEditorPartOptions): IEditorPartOpti
125125 }
126126
127127 return verifyObject < IEditorPartOptions > ( {
128- 'wrapTabs' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' wrapTabs' ] ) ,
129- 'scrollToSwitchTabs' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' scrollToSwitchTabs' ] ) ,
130- 'highlightModifiedTabs' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' highlightModifiedTabs' ] ) ,
131- 'tabActionReserveSpace' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' tabActionReserveSpace' ] ) ,
132- 'tabActionCloseVisibility' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' tabActionCloseVisibility' ] ) ,
133- 'tabActionUnpinVisibility' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' tabActionUnpinVisibility' ] ) ,
134- 'showTabIndex' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' showTabIndex' ] ) ,
135- 'alwaysShowEditorActions' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' alwaysShowEditorActions' ] ) ,
136- 'pinnedTabsOnSeparateRow' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' pinnedTabsOnSeparateRow' ] ) ,
137- 'focusRecentEditorAfterClose' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' focusRecentEditorAfterClose' ] ) ,
138- 'showIcons' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' showIcons' ] ) ,
139- 'enablePreview' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' enablePreview' ] ) ,
140- 'enablePreviewFromQuickOpen' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' enablePreviewFromQuickOpen' ] ) ,
141- 'enablePreviewFromCodeNavigation' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' enablePreviewFromCodeNavigation' ] ) ,
142- 'closeOnFileDelete' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' closeOnFileDelete' ] ) ,
143- 'closeEmptyGroups' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' closeEmptyGroups' ] ) ,
144- 'revealIfOpen' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' revealIfOpen' ] ) ,
145- 'swipeToNavigate' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' swipeToNavigate' ] ) ,
146- 'mouseBackForwardToNavigate' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' mouseBackForwardToNavigate' ] ) ,
147- 'restoreViewState' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' restoreViewState' ] ) ,
148- 'splitOnDragAndDrop' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' splitOnDragAndDrop' ] ) ,
149- 'allowDropIntoGroup' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' allowDropIntoGroup' ] ) ,
150- 'dragToOpenWindow' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' dragToOpenWindow' ] ) ,
151- 'centeredLayoutFixedWidth' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' centeredLayoutFixedWidth' ] ) ,
152- 'hasIcons' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' hasIcons' ] ) ,
153-
154- 'tabSizingFixedMinWidth' : new NumberVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' tabSizingFixedMinWidth' ] ) ,
155- 'tabSizingFixedMaxWidth' : new NumberVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' tabSizingFixedMaxWidth' ] ) ,
156-
157- 'showTabs' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' showTabs' ] , [ 'multiple' , 'single' , 'none' ] ) ,
158- 'tabActionLocation' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' tabActionLocation' ] , [ 'left' , 'right' ] ) ,
159- 'tabSizing' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' tabSizing' ] , [ 'fit' , 'shrink' , 'fixed' ] ) ,
160- 'pinnedTabSizing' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' pinnedTabSizing' ] , [ 'normal' , 'compact' , 'shrink' ] ) ,
161- 'tabHeight' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' tabHeight' ] , [ 'default' , 'compact' ] ) ,
162- 'preventPinnedEditorClose' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' preventPinnedEditorClose' ] , [ 'keyboardAndMouse' , 'keyboard' , 'mouse' , 'never' ] ) ,
163- 'titleScrollbarSizing' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' titleScrollbarSizing' ] , [ 'default' , 'large' ] ) ,
164- 'titleScrollbarVisibility' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' titleScrollbarVisibility' ] , [ 'auto' , 'visible' , 'hidden' ] ) ,
165- 'openPositioning' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' openPositioning' ] , [ 'left' , 'right' , 'first' , 'last' ] ) ,
166- 'openSideBySideDirection' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' openSideBySideDirection' ] , [ 'right' , 'down' ] ) ,
167- 'labelFormat' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' labelFormat' ] , [ 'default' , 'short' , 'medium' , 'long' ] ) ,
168- 'splitInGroupLayout' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' splitInGroupLayout' ] , [ 'vertical' , 'horizontal' ] ) ,
169- 'splitSizing' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' splitSizing' ] , [ 'distribute' , 'split' , 'auto' ] ) ,
170- 'doubleClickTabToToggleEditorGroupSizes' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' doubleClickTabToToggleEditorGroupSizes' ] , [ 'maximize' , 'expand' , 'off' ] ) ,
171- 'editorActionsLocation' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' editorActionsLocation' ] , [ 'default' , 'titleBar' , 'hidden' ] ) ,
172- 'autoLockGroups' : new SetVerifier < string > ( DEFAULT_EDITOR_PART_OPTIONS [ ' autoLockGroups' ] ) ,
173-
174- 'limit' : new ObjectVerifier < IEditorPartLimitOptions > ( DEFAULT_EDITOR_PART_OPTIONS [ ' limit' ] , {
175- 'enabled' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' limit' ] [ ' enabled' ] ) ,
176- 'value' : new NumberVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' limit' ] [ ' value' ] ) ,
177- 'perEditorGroup' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' limit' ] [ ' perEditorGroup' ] ) ,
178- 'excludeDirty' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' limit' ] [ ' excludeDirty' ] )
128+ 'wrapTabs' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . wrapTabs ) ,
129+ 'scrollToSwitchTabs' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . scrollToSwitchTabs ) ,
130+ 'highlightModifiedTabs' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . highlightModifiedTabs ) ,
131+ 'tabActionReserveSpace' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . tabActionReserveSpace ) ,
132+ 'tabActionCloseVisibility' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . tabActionCloseVisibility ) ,
133+ 'tabActionUnpinVisibility' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . tabActionUnpinVisibility ) ,
134+ 'showTabIndex' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . showTabIndex ) ,
135+ 'alwaysShowEditorActions' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . alwaysShowEditorActions ) ,
136+ 'pinnedTabsOnSeparateRow' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . pinnedTabsOnSeparateRow ) ,
137+ 'focusRecentEditorAfterClose' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . focusRecentEditorAfterClose ) ,
138+ 'showIcons' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . showIcons ) ,
139+ 'enablePreview' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . enablePreview ) ,
140+ 'enablePreviewFromQuickOpen' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . enablePreviewFromQuickOpen ) ,
141+ 'enablePreviewFromCodeNavigation' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . enablePreviewFromCodeNavigation ) ,
142+ 'closeOnFileDelete' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . closeOnFileDelete ) ,
143+ 'closeEmptyGroups' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . closeEmptyGroups ) ,
144+ 'revealIfOpen' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . revealIfOpen ) ,
145+ 'swipeToNavigate' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . swipeToNavigate ) ,
146+ 'mouseBackForwardToNavigate' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . mouseBackForwardToNavigate ) ,
147+ 'restoreViewState' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . restoreViewState ) ,
148+ 'splitOnDragAndDrop' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . splitOnDragAndDrop ) ,
149+ 'allowDropIntoGroup' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . allowDropIntoGroup ) ,
150+ 'dragToOpenWindow' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . dragToOpenWindow ) ,
151+ 'centeredLayoutFixedWidth' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . centeredLayoutFixedWidth ) ,
152+ 'hasIcons' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . hasIcons ) ,
153+
154+ 'tabSizingFixedMinWidth' : new NumberVerifier ( DEFAULT_EDITOR_PART_OPTIONS . tabSizingFixedMinWidth ) ,
155+ 'tabSizingFixedMaxWidth' : new NumberVerifier ( DEFAULT_EDITOR_PART_OPTIONS . tabSizingFixedMaxWidth ) ,
156+
157+ 'showTabs' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . showTabs , [ 'multiple' , 'single' , 'none' ] ) ,
158+ 'tabActionLocation' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . tabActionLocation , [ 'left' , 'right' ] ) ,
159+ 'tabSizing' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . tabSizing , [ 'fit' , 'shrink' , 'fixed' ] ) ,
160+ 'pinnedTabSizing' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . pinnedTabSizing , [ 'normal' , 'compact' , 'shrink' ] ) ,
161+ 'tabHeight' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . tabHeight , [ 'default' , 'compact' ] ) ,
162+ 'preventPinnedEditorClose' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . preventPinnedEditorClose , [ 'keyboardAndMouse' , 'keyboard' , 'mouse' , 'never' ] ) ,
163+ 'titleScrollbarSizing' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . titleScrollbarSizing , [ 'default' , 'large' ] ) ,
164+ 'titleScrollbarVisibility' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . titleScrollbarVisibility , [ 'auto' , 'visible' , 'hidden' ] ) ,
165+ 'openPositioning' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . openPositioning , [ 'left' , 'right' , 'first' , 'last' ] ) ,
166+ 'openSideBySideDirection' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . openSideBySideDirection , [ 'right' , 'down' ] ) ,
167+ 'labelFormat' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . labelFormat , [ 'default' , 'short' , 'medium' , 'long' ] ) ,
168+ 'splitInGroupLayout' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . splitInGroupLayout , [ 'vertical' , 'horizontal' ] ) ,
169+ 'splitSizing' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . splitSizing , [ 'distribute' , 'split' , 'auto' ] ) ,
170+ 'doubleClickTabToToggleEditorGroupSizes' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . doubleClickTabToToggleEditorGroupSizes , [ 'maximize' , 'expand' , 'off' ] ) ,
171+ 'editorActionsLocation' : new EnumVerifier ( DEFAULT_EDITOR_PART_OPTIONS . editorActionsLocation , [ 'default' , 'titleBar' , 'hidden' ] ) ,
172+ 'autoLockGroups' : new SetVerifier < string > ( DEFAULT_EDITOR_PART_OPTIONS . autoLockGroups ) ,
173+
174+ 'limit' : new ObjectVerifier < IEditorPartLimitOptions > ( DEFAULT_EDITOR_PART_OPTIONS . limit , {
175+ 'enabled' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . limit . enabled ) ,
176+ 'value' : new NumberVerifier ( DEFAULT_EDITOR_PART_OPTIONS . limit . value ) ,
177+ 'perEditorGroup' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . limit . perEditorGroup ) ,
178+ 'excludeDirty' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . limit . excludeDirty )
179179 } ) ,
180- 'decorations' : new ObjectVerifier < IEditorPartDecorationOptions > ( DEFAULT_EDITOR_PART_OPTIONS [ ' decorations' ] , {
181- 'badges' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' decorations' ] [ ' badges' ] ) ,
182- 'colors' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS [ ' decorations' ] [ ' colors' ] )
180+ 'decorations' : new ObjectVerifier < IEditorPartDecorationOptions > ( DEFAULT_EDITOR_PART_OPTIONS . decorations , {
181+ 'badges' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . decorations . badges ) ,
182+ 'colors' : new BooleanVerifier ( DEFAULT_EDITOR_PART_OPTIONS . decorations . colors )
183183 } ) ,
184184 } , options ) ;
185185}
0 commit comments