
import { isStandalone } from '../../base/browser/browser.js';
import { isWeb, isMacintosh, isNative, isWindows, isLinux } from '../../base/common/platform.js';
import { localize } from '../../nls.js';
import { Extensions, ConfigurationScope } from '../../platform/configuration/common/configurationRegistry.js';
import product from '../../platform/product/common/product.js';
import { Registry } from '../../platform/registry/common/platform.js';
import { ConfigurationMigrationWorkbenchContribution, DynamicWorkbenchSecurityConfiguration, workbenchConfigurationNodeBase, windowConfigurationNodeBase, DynamicWindowConfiguration, problemsConfigurationNodeBase, Extensions as Extensions$1 } from '../common/configuration.js';
import { registerWorkbenchContribution2, WorkbenchPhase } from '../common/contributions.js';
import { NotificationsSettings, NotificationsPosition } from '../common/notifications.js';
import { CustomEditorLabelService } from '../services/editor/common/customEditorLabelService.js';
import { LayoutSettings, EditorActionsLocation, EditorTabsMode, ActivityBarPosition } from '../services/layout/browser/layoutService.js';
import { defaultWindowTitleSeparator, defaultWindowTitle } from './parts/titlebar/windowTitle.js';

const registry = ( Registry.as(Extensions.Configuration));
(function registerConfiguration() {
    registerWorkbenchContribution2(
        ConfigurationMigrationWorkbenchContribution.ID,
        ConfigurationMigrationWorkbenchContribution,
        WorkbenchPhase.Eventually
    );
    registerWorkbenchContribution2(
        DynamicWorkbenchSecurityConfiguration.ID,
        DynamicWorkbenchSecurityConfiguration,
        WorkbenchPhase.AfterRestored
    );
    registry.registerConfiguration({
        ...workbenchConfigurationNodeBase,
        "properties": {
            "workbench.externalBrowser": {
                type: "string",
                markdownDescription: ( localize(
                    3812,
                    "Configure the browser to use for opening http or https links externally. This can either be the name of the browser (`edge`, `chrome`, `firefox`) or an absolute path to the browser's executable. Will use the system default if not set."
                )),
                included: isNative,
                restricted: true
            },
            "workbench.editor.titleScrollbarSizing": {
                type: "string",
                enum: ["default", "large"],
                enumDescriptions: [( localize(3813, "The default size.")), ( localize(
                    3814,
                    "Increases the size, so it can be grabbed more easily with the mouse."
                ))],
                description: ( localize(
                    3815,
                    "Controls the height of the scrollbars used for tabs and breadcrumbs in the editor title area."
                )),
                default: "default"
            },
            "workbench.editor.titleScrollbarVisibility": {
                type: "string",
                enum: ["auto", "visible", "hidden"],
                enumDescriptions: [( localize(3816, "The horizontal scrollbar will be visible only when necessary.")), ( localize(3817, "The horizontal scrollbar will always be visible.")), ( localize(3818, "The horizontal scrollbar will always be hidden."))],
                description: ( localize(
                    3819,
                    "Controls the visibility of the scrollbars used for tabs and breadcrumbs in the editor title area."
                )),
                default: "auto"
            },
            [LayoutSettings.EDITOR_TABS_MODE]: {
                "type": "string",
                "enum": [EditorTabsMode.MULTIPLE, EditorTabsMode.SINGLE, EditorTabsMode.NONE],
                "enumDescriptions": [( localize(3820, "Each editor is displayed as a tab in the editor title area.")), ( localize(
                    3821,
                    "The active editor is displayed as a single large tab in the editor title area."
                )), ( localize(3822, "The editor title area is not displayed."))],
                "description": ( localize(
                    3823,
                    "Controls whether opened editors should show as individual tabs, one single large tab or if the title area should not be shown."
                )),
                "default": "multiple"
            },
            [LayoutSettings.EDITOR_ACTIONS_LOCATION]: {
                "type": "string",
                "enum": [
                    EditorActionsLocation.DEFAULT,
                    EditorActionsLocation.TITLEBAR,
                    EditorActionsLocation.HIDDEN
                ],
                "markdownEnumDescriptions": [( localize(
                    3824,
                    "Show editor actions in the window title bar when {0} is set to {1}. Otherwise, editor actions are shown in the editor tab bar.",
                    "`#workbench.editor.showTabs#`",
                    "`none`"
                )), ( localize(
                    3825,
                    "Show editor actions in the window title bar. If {0} is set to {1}, editor actions are hidden.",
                    "`#window.customTitleBarVisibility#`",
                    "`never`"
                )), ( localize(3826, "Editor actions are not shown."))],
                "markdownDescription": ( localize(3827, "Controls where the editor actions are shown.")),
                "default": "default"
            },
            "workbench.editor.alwaysShowEditorActions": {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3828,
                    "Controls whether to always show the editor actions, even when the editor group is not active."
                )),
                "default": false
            },
            "workbench.editor.wrapTabs": {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3829,
                    "Controls whether tabs should be wrapped over multiple lines when exceeding available space or whether a scrollbar should appear instead. This value is ignored when {0} is not set to '{1}'.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                )),
                "default": false
            },
            "workbench.editor.scrollToSwitchTabs": {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3830,
                    "Controls whether scrolling over tabs will open them or not. By default tabs will only reveal upon scrolling, but not open. You can press and hold the Shift-key while scrolling to change this behavior for that duration. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                )),
                "default": false
            },
            "workbench.editor.highlightModifiedTabs": {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3831,
                    "Controls whether a top border is drawn on tabs for editors that have unsaved changes. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    `multiple`
                )),
                "default": false
            },
            "workbench.editor.decorations.badges": {
                "type": "boolean",
                "markdownDescription": ( localize(3832, "Controls whether editor file decorations should use badges.")),
                "default": true
            },
            "workbench.editor.decorations.colors": {
                "type": "boolean",
                "markdownDescription": ( localize(3833, "Controls whether editor file decorations should use colors.")),
                "default": true
            },
            [CustomEditorLabelService.SETTING_ID_ENABLED]: {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3834,
                    "Controls whether the custom workbench editor labels should be applied."
                )),
                "default": true
            },
            [CustomEditorLabelService.SETTING_ID_PATTERNS]: {
                "type": "object",
                "markdownDescription": (() => {
                    let customEditorLabelDescription = ( localize(
                        3835,
                        "Controls the rendering of the editor label. Each __Item__ is a pattern that matches a file path. Both relative and absolute file paths are supported. The relative path must include the WORKSPACE_FOLDER (e.g `WORKSPACE_FOLDER/src/**.tsx` or `*/src/**.tsx`). Absolute patterns must start with a `/`. In case multiple patterns match, the longest matching path will be picked. Each __Value__ is the template for the rendered editor when the __Item__ matches. Variables are substituted based on the context:"
                    ));
                    customEditorLabelDescription += "\n- " + [( localize(
                        3836,
                        "`${dirname}`: name of the folder in which the file is located (e.g. `WORKSPACE_FOLDER/folder/file.txt -> folder`)."
                    )), ( localize(
                        3837,
                        "`${dirname(N)}`: name of the nth parent folder in which the file is located (e.g. `N=2: WORKSPACE_FOLDER/static/folder/file.txt -> WORKSPACE_FOLDER`). Folders can be picked from the start of the path by using negative numbers (e.g. `N=-1: WORKSPACE_FOLDER/folder/file.txt -> WORKSPACE_FOLDER`). If the __Item__ is an absolute pattern path, the first folder (`N=-1`) refers to the first folder in the absolute path, otherwise it corresponds to the workspace folder."
                    )), ( localize(
                        3838,
                        "`${filename}`: name of the file without the file extension (e.g. `WORKSPACE_FOLDER/folder/file.txt -> file`)."
                    )), ( localize(
                        3839,
                        "`${extname}`: the file extension (e.g. `WORKSPACE_FOLDER/folder/file.txt -> txt`)."
                    )), ( localize(
                        3840,
                        "`${extname(N)}`: the nth extension of the file separated by '.' (e.g. `N=2: WORKSPACE_FOLDER/folder/file.ext1.ext2.ext3 -> ext1`). Extension can be picked from the start of the extension by using negative numbers (e.g. `N=-1: WORKSPACE_FOLDER/folder/file.ext1.ext2.ext3 -> ext2`)."
                    ))].join("\n- ");
                    customEditorLabelDescription += "\n\n" + ( localize(
                        3841,
                        "Example: `\"**/static/**/*.html\": \"${filename} - ${dirname} (${extname})\"` will render a file `WORKSPACE_FOLDER/static/folder/file.html` as `file - folder (html)`."
                    ));
                    return customEditorLabelDescription;
                })(),
                additionalProperties: {
                    type: ["string", "null"],
                    markdownDescription: ( localize(
                        3842,
                        "The template which should be rendered when the pattern matches. May include the variables ${dirname}, ${filename} and ${extname}."
                    )),
                    minLength: 1,
                    pattern: ".*[a-zA-Z0-9].*"
                },
                "default": {}
            },
            "workbench.editor.labelFormat": {
                "type": "string",
                "enum": ["default", "short", "medium", "long"],
                "enumDescriptions": [( localize(
                    3843,
                    "Show the name of the file. When tabs are enabled and two files have the same name in one group the distinguishing sections of each file's path are added. When tabs are disabled, the path relative to the workspace folder is shown if the editor is active."
                )), ( localize(3844, "Show the name of the file followed by its directory name.")), ( localize(
                    3845,
                    "Show the name of the file followed by its path relative to the workspace folder."
                )), ( localize(3846, "Show the name of the file followed by its absolute path."))],
                "default": "default",
                "description": ( localize(3847, "Controls the format of the label for an editor."))
            },
            "workbench.editor.untitled.labelFormat": {
                "type": "string",
                "enum": ["content", "name"],
                "enumDescriptions": [( localize(
                    3848,
                    "The name of the untitled file is derived from the contents of its first line unless it has an associated file path. It will fallback to the name in case the line is empty or contains no word characters."
                )), ( localize(
                    3849,
                    "The name of the untitled file is not derived from the contents of the file."
                ))],
                "default": "content",
                "description": ( localize(3850, "Controls the format of the label for an untitled editor."))
            },
            "workbench.editor.empty.hint": {
                "type": "string",
                "enum": ["text", "hidden"],
                "default": "text",
                "markdownDescription": ( localize(
                    3851,
                    "Controls if the empty editor text hint should be visible in the editor."
                ))
            },
            "workbench.editor.languageDetection": {
                type: "boolean",
                default: true,
                description: ( localize(
                    3852,
                    "Controls whether the language in a text editor is automatically detected unless the language has been explicitly set by the language picker. This can also be scoped by language so you can specify which languages you do not want to be switched off of. This is useful for languages like Markdown that often contain other languages that might trick language detection into thinking it's the embedded language and not Markdown."
                )),
                scope: ConfigurationScope.LANGUAGE_OVERRIDABLE
            },
            "workbench.editor.historyBasedLanguageDetection": {
                type: "boolean",
                default: true,
                description: ( localize(
                    3853,
                    "Enables use of editor history in language detection. This causes automatic language detection to favor languages that have been recently opened and allows for automatic language detection to operate with smaller inputs."
                ))
            },
            "workbench.editor.preferHistoryBasedLanguageDetection": {
                type: "boolean",
                default: false,
                description: ( localize(
                    3854,
                    "When enabled, a language detection model that takes into account editor history will be given higher precedence."
                ))
            },
            "workbench.editor.languageDetectionHints": {
                type: "object",
                default: {
                    "untitledEditors": true,
                    "notebookEditors": true
                },
                description: ( localize(
                    3855,
                    "When enabled, shows a status bar Quick Fix when the editor language doesn't match detected content language."
                )),
                additionalProperties: false,
                properties: {
                    untitledEditors: {
                        type: "boolean",
                        description: ( localize(3856, "Show in untitled text editors"))
                    },
                    notebookEditors: {
                        type: "boolean",
                        description: ( localize(3857, "Show in notebook editors"))
                    }
                }
            },
            "workbench.editor.tabActionLocation": {
                type: "string",
                enum: ["left", "right"],
                default: "right",
                markdownDescription: ( localize(
                    3858,
                    "Controls the position of the editor's tabs action buttons (close, unpin). This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                ))
            },
            "workbench.editor.tabActionCloseVisibility": {
                type: "boolean",
                default: true,
                description: ( localize(3859, "Controls the visibility of the tab close action button."))
            },
            "workbench.editor.tabActionUnpinVisibility": {
                type: "boolean",
                default: true,
                description: ( localize(3860, "Controls the visibility of the tab unpin action button."))
            },
            "workbench.editor.showTabIndex": {
                "type": "boolean",
                "default": false,
                "markdownDescription": ( localize(
                    3861,
                    "When enabled, will show the tab index. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                ))
            },
            "workbench.editor.tabSizing": {
                "type": "string",
                "enum": ["fit", "shrink", "fixed"],
                "default": "fit",
                "enumDescriptions": [( localize(3862, "Always keep tabs large enough to show the full editor label.")), ( localize(
                    3863,
                    "Allow tabs to get smaller when the available space is not enough to show all tabs at once."
                )), ( localize(
                    3864,
                    "Make all tabs the same size, while allowing them to get smaller when the available space is not enough to show all tabs at once."
                ))],
                "markdownDescription": ( localize(
                    3865,
                    "Controls the size of editor tabs. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                ))
            },
            "workbench.editor.tabSizingFixedMinWidth": {
                "type": "number",
                "default": 50,
                "minimum": 38,
                "markdownDescription": ( localize(
                    3866,
                    "Controls the minimum width of tabs when {0} size is set to {1}.",
                    "`#workbench.editor.tabSizing#`",
                    "`fixed`"
                ))
            },
            "workbench.editor.tabSizingFixedMaxWidth": {
                "type": "number",
                "default": 160,
                "minimum": 38,
                "markdownDescription": ( localize(
                    3867,
                    "Controls the maximum width of tabs when {0} size is set to {1}.",
                    "`#workbench.editor.tabSizing#`",
                    "`fixed`"
                ))
            },
            "window.density.editorTabHeight": {
                "type": "string",
                "enum": ["default", "compact"],
                "default": "default",
                "markdownDescription": ( localize(
                    3868,
                    "Controls the height of editor tabs. Also applies to the title control bar when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                ))
            },
            "workbench.editor.pinnedTabSizing": {
                "type": "string",
                "enum": ["normal", "compact", "shrink"],
                "default": "normal",
                "enumDescriptions": [( localize(3869, "A pinned tab inherits the look of non pinned tabs.")), ( localize(
                    3870,
                    "A pinned tab will show in a compact form with only icon or first letter of the editor name."
                )), ( localize(
                    3871,
                    "A pinned tab shrinks to a compact fixed size showing parts of the editor name."
                ))],
                "markdownDescription": ( localize(
                    3872,
                    "Controls the size of pinned editor tabs. Pinned tabs are sorted to the beginning of all opened tabs and typically do not close until unpinned. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                ))
            },
            "workbench.editor.pinnedTabsOnSeparateRow": {
                "type": "boolean",
                "default": false,
                "markdownDescription": ( localize(
                    3873,
                    "When enabled, displays pinned tabs in a separate row above all other tabs. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                ))
            },
            "workbench.editor.preventPinnedEditorClose": {
                "type": "string",
                "enum": ["keyboardAndMouse", "keyboard", "mouse", "never"],
                "default": "keyboardAndMouse",
                "enumDescriptions": [( localize(
                    3874,
                    "Always prevent closing the pinned editor when using mouse middle click or keyboard."
                )), ( localize(3875, "Prevent closing the pinned editor when using the keyboard.")), ( localize(3876, "Prevent closing the pinned editor when using mouse middle click.")), ( localize(3877, "Never prevent closing a pinned editor."))],
                description: ( localize(
                    3878,
                    "Controls whether pinned editors should close when keyboard or middle mouse click is used for closing."
                ))
            },
            "workbench.editor.splitSizing": {
                "type": "string",
                "enum": ["auto", "distribute", "split"],
                "default": "auto",
                "enumDescriptions": [( localize(
                    3879,
                    "Splits the active editor group to equal parts, unless all editor groups are already in equal parts. In that case, splits all the editor groups to equal parts."
                )), ( localize(3880, "Splits all the editor groups to equal parts.")), ( localize(3881, "Splits the active editor group to equal parts."))],
                "description": ( localize(3882, "Controls the size of editor groups when splitting them."))
            },
            "workbench.editor.splitOnDragAndDrop": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    3883,
                    "Controls if editor groups can be split from drag and drop operations by dropping an editor or file on the edges of the editor area."
                ))
            },
            "workbench.editor.dragToOpenWindow": {
                "type": "boolean",
                "default": true,
                "markdownDescription": ( localize(
                    3884,
                    "Controls if editors can be dragged out of the window to open them in a new window. Press and hold the `Alt` key while dragging to toggle this dynamically."
                ))
            },
            "workbench.editor.focusRecentEditorAfterClose": {
                "type": "boolean",
                "description": ( localize(
                    3885,
                    "Controls whether editors are closed in most recently used order or from left to right."
                )),
                "default": true
            },
            "workbench.editor.showIcons": {
                "type": "boolean",
                "description": ( localize(
                    3886,
                    "Controls whether opened editors should show with an icon or not. This requires a file icon theme to be enabled as well."
                )),
                "default": true
            },
            "workbench.editor.enablePreview": {
                "type": "boolean",
                "description": ( localize(
                    3887,
                    "Controls whether preview mode is used when editors open. There is a maximum of one preview mode editor per editor group. This editor displays its filename in italics on its tab or title label and in the Open Editors view. Its contents will be replaced by the next editor opened in preview mode. Making a change in a preview mode editor will persist it, as will a double-click on its label, or the 'Keep Open' option in its label context menu. Opening a file from Explorer with a double-click persists its editor immediately."
                )),
                "default": true
            },
            "workbench.editor.enablePreviewFromQuickOpen": {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3888,
                    "Controls whether editors opened from Quick Open show as preview editors. Preview editors do not stay open, and are reused until explicitly set to be kept open (via double-click or editing). When enabled, hold Ctrl before selection to open an editor as a non-preview. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                )),
                "default": false
            },
            "workbench.editor.enablePreviewFromCodeNavigation": {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3889,
                    "Controls whether editors remain in preview when a code navigation is started from them. Preview editors do not stay open, and are reused until explicitly set to be kept open (via double-click or editing). This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                )),
                "default": false
            },
            "workbench.editor.closeOnFileDelete": {
                "type": "boolean",
                "description": ( localize(
                    3890,
                    "Controls whether editors showing a file that was opened during the session should close automatically when getting deleted or renamed by some other process. Disabling this will keep the editor open  on such an event. Note that deleting from within the application will always close the editor and that editors with unsaved changes will never close to preserve your data."
                )),
                "default": false
            },
            "workbench.editor.openPositioning": {
                "type": "string",
                "enum": ["left", "right", "first", "last"],
                "default": "right",
                "markdownDescription": ( localize(
                    3891,
                    "Controls where editors open. Select {0} or {1} to open editors to the left or right of the currently active one. Select {2} or {3} to open editors independently from the currently active one.",
                    "`left`",
                    "`right`",
                    "`first`",
                    "`last`"
                ))
            },
            "workbench.editor.openSideBySideDirection": {
                "type": "string",
                "enum": ["right", "down"],
                "default": "right",
                "markdownDescription": ( localize(
                    3892,
                    "Controls the default direction of editors that are opened side by side (for example, from the Explorer). By default, editors will open on the right hand side of the currently active one. If changed to `down`, the editors will open below the currently active one. This also impacts the split editor action in the editor toolbar."
                ))
            },
            "workbench.editor.closeEmptyGroups": {
                "type": "boolean",
                "description": ( localize(
                    3893,
                    "Controls the behavior of empty editor groups when the last tab in the group is closed. When enabled, empty groups will automatically close. When disabled, empty groups will remain part of the grid."
                )),
                "default": true
            },
            "workbench.editor.revealIfOpen": {
                "type": "boolean",
                "description": ( localize(
                    3894,
                    "Controls whether an editor is revealed in any of the visible groups if opened. If disabled, an editor will prefer to open in the currently active editor group. If enabled, an already opened editor will be revealed instead of opened again in the currently active editor group. Note that there are some cases where this setting is ignored, such as when forcing an editor to open in a specific group or to the side of the currently active group."
                )),
                "default": false
            },
            "workbench.editor.useModal": {
                "type": "string",
                "enum": ["off", "some", "all"],
                "enumDescriptions": [( localize(3895, "Editors never open in a modal overlay.")), ( localize(
                    3896,
                    "Certain editors such as Settings and Keyboard Shortcuts may open in a centered modal overlay."
                )), ( localize(3897, "All editors open in a centered modal overlay."))],
                "description": ( localize(3898, "Controls whether editors open in a modal overlay.")),
                "default": product.quality !== "stable" ? "some" : "off",
                tags: ["experimental"],
                experiment: {
                    mode: "auto"
                }
            },
            "workbench.editor.modalMinWidth": {
                "type": "number",
                "description": ( localize(3899, "Controls the minimum width of modal editor overlays in pixels.")),
                "default": 400,
                "minimum": 0,
                "multipleOf": 1
            },
            "workbench.editor.swipeToNavigate": {
                "type": "boolean",
                "description": ( localize(
                    3900,
                    "Navigate between open files using three-finger swipe horizontally. Note that System Preferences > Trackpad > More Gestures > 'Swipe between pages' must be set to 'Swipe with two or three fingers'."
                )),
                "default": false,
                "included": isMacintosh && !isWeb
            },
            "workbench.editor.mouseBackForwardToNavigate": {
                "type": "boolean",
                "description": ( localize(
                    3901,
                    "Enables the use of mouse buttons four and five for commands 'Go Back' and 'Go Forward'."
                )),
                "default": true
            },
            "workbench.editor.navigationScope": {
                "type": "string",
                "enum": ["default", "editorGroup", "editor"],
                "default": "default",
                "markdownDescription": ( localize(
                    3902,
                    "Controls the scope of history navigation in editors for commands such as 'Go Back' and 'Go Forward'."
                )),
                "enumDescriptions": [( localize(3903, "Navigate across all opened editors and editor groups.")), ( localize(3904, "Navigate only in editors of the active editor group.")), ( localize(3905, "Navigate only in the active editor."))]
            },
            "workbench.editor.restoreViewState": {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3906,
                    "Restores the last editor view state (such as scroll position) when re-opening editors after they have been closed. Editor view state is stored per editor group and discarded when a group closes. Use the {0} setting to use the last known view state across all editor groups in case no previous view state was found for a editor group.",
                    "`#workbench.editor.sharedViewState#`"
                )),
                "default": true,
                "scope": ConfigurationScope.LANGUAGE_OVERRIDABLE
            },
            "workbench.editor.sharedViewState": {
                "type": "boolean",
                "description": ( localize(
                    3907,
                    "Preserves the most recent editor view state (such as scroll position) across all editor groups and restores that if no specific editor view state is found for the editor group."
                )),
                "default": false
            },
            "workbench.editor.restoreEditors": {
                "type": "boolean",
                "description": ( localize(
                    3908,
                    "Controls whether editors are restored on startup. When disabled, only dirty editors will be restored from the previous session."
                )),
                "default": true
            },
            "workbench.editor.splitInGroupLayout": {
                "type": "string",
                "enum": ["vertical", "horizontal"],
                "default": "horizontal",
                "markdownDescription": ( localize(
                    3909,
                    "Controls the layout for when an editor is split in an editor group to be either vertical or horizontal."
                )),
                "enumDescriptions": [( localize(3910, "Editors are positioned from top to bottom.")), ( localize(3911, "Editors are positioned from left to right."))]
            },
            "workbench.editor.centeredLayoutAutoResize": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    3912,
                    "Controls if the centered layout should automatically resize to maximum width when more than one group is open. Once only one group is open it will resize back to the original centered width."
                ))
            },
            "workbench.editor.centeredLayoutFixedWidth": {
                "type": "boolean",
                "default": false,
                "description": ( localize(
                    3913,
                    "Controls whether the centered layout tries to maintain constant width when the window is resized."
                ))
            },
            "workbench.editor.doubleClickTabToToggleEditorGroupSizes": {
                "type": "string",
                "enum": ["maximize", "expand", "off"],
                "default": "expand",
                "markdownDescription": ( localize(
                    3914,
                    "Controls how the editor group is resized when double clicking on a tab. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.editor.showTabs#`",
                    "`multiple`"
                )),
                "enumDescriptions": [( localize(
                    3915,
                    "All other editor groups are hidden and the current editor group is maximized to take up the entire editor area."
                )), ( localize(
                    3916,
                    "The editor group takes as much space as possible by making all other editor groups as small as possible."
                )), ( localize(3917, "No editor group is resized when double clicking on a tab."))]
            },
            "workbench.editor.limit.enabled": {
                "type": "boolean",
                "default": false,
                "description": ( localize(
                    3918,
                    "Controls if the number of opened editors should be limited or not. When enabled, less recently used editors will close to make space for newly opening editors."
                ))
            },
            "workbench.editor.limit.value": {
                "type": "number",
                "default": 10,
                "exclusiveMinimum": 0,
                "markdownDescription": ( localize(
                    3919,
                    "Controls the maximum number of opened editors. Use the {0} setting to control this limit per editor group or across all groups.",
                    "`#workbench.editor.limit.perEditorGroup#`"
                ))
            },
            "workbench.editor.limit.excludeDirty": {
                "type": "boolean",
                "default": false,
                "description": ( localize(
                    3920,
                    "Controls if the maximum number of opened editors should exclude dirty editors for counting towards the configured limit."
                ))
            },
            "workbench.editor.limit.perEditorGroup": {
                "type": "boolean",
                "default": false,
                "description": ( localize(
                    3921,
                    "Controls if the limit of maximum opened editors should apply per editor group or across all editor groups."
                ))
            },
            "workbench.localHistory.enabled": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    3922,
                    "Controls whether local file history is enabled. When enabled, the file contents of an editor that is saved will be stored to a backup location to be able to restore or review the contents later. Changing this setting has no effect on existing local file history entries."
                )),
                "scope": ConfigurationScope.RESOURCE
            },
            "workbench.localHistory.maxFileSize": {
                "type": "number",
                "default": 256,
                "minimum": 1,
                "description": ( localize(
                    3923,
                    "Controls the maximum size of a file (in KB) to be considered for local file history. Files that are larger will not be added to the local file history. Changing this setting has no effect on existing local file history entries."
                )),
                "scope": ConfigurationScope.RESOURCE
            },
            "workbench.localHistory.maxFileEntries": {
                "type": "number",
                "default": 50,
                "minimum": 0,
                "description": ( localize(
                    3924,
                    "Controls the maximum number of local file history entries per file. When the number of local file history entries exceeds this number for a file, the oldest entries will be discarded."
                )),
                "scope": ConfigurationScope.RESOURCE
            },
            "workbench.localHistory.exclude": {
                "type": "object",
                "patternProperties": {
                    ".*": {
                        "type": "boolean"
                    }
                },
                "markdownDescription": ( localize(
                    3925,
                    "Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) for excluding files from the local file history. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. Changing this setting has no effect on existing local file history entries."
                )),
                "scope": ConfigurationScope.RESOURCE
            },
            "workbench.localHistory.mergeWindow": {
                "type": "number",
                "default": 10,
                "minimum": 1,
                "markdownDescription": ( localize(
                    3926,
                    "Configure an interval in seconds during which the last entry in local file history is replaced with the entry that is being added. This helps reduce the overall number of entries that are added, for example when auto save is enabled. This setting is only applied to entries that have the same source of origin. Changing this setting has no effect on existing local file history entries."
                )),
                "scope": ConfigurationScope.RESOURCE
            },
            "workbench.commandPalette.history": {
                "type": "number",
                "description": ( localize(
                    3927,
                    "Controls the number of recently used commands to keep in history for the command palette. Set to 0 to disable command history."
                )),
                "default": 50,
                "minimum": 0
            },
            "workbench.commandPalette.preserveInput": {
                "type": "boolean",
                "description": ( localize(
                    3928,
                    "Controls whether the last typed input to the command palette should be restored when opening it the next time."
                )),
                "default": false
            },
            "workbench.commandPalette.experimental.suggestCommands": {
                "type": "boolean",
                tags: ["experimental"],
                "description": ( localize(
                    3929,
                    "Controls whether the command palette should have a list of commonly used commands."
                )),
                "default": false
            },
            "workbench.commandPalette.experimental.askChatLocation": {
                "type": "string",
                tags: ["experimental"],
                "description": ( localize(3930, "Controls where the command palette should ask chat questions.")),
                "default": "chatView",
                enum: ["chatView", "quickChat"],
                enumDescriptions: [( localize(3931, "Ask chat questions in the Chat view.")), ( localize(3932, "Ask chat questions in Quick Chat."))]
            },
            "workbench.commandPalette.showAskInChat": {
                "type": "boolean",
                tags: ["experimental"],
                "description": ( localize(
                    3933,
                    "Controls whether the command palette shows 'Ask in Chat' option at the bottom."
                )),
                "default": true
            },
            "workbench.commandPalette.experimental.enableNaturalLanguageSearch": {
                "type": "boolean",
                tags: ["experimental"],
                "description": ( localize(
                    3934,
                    "Controls whether the command palette should include similar commands. You must have an extension installed that provides Natural Language support."
                )),
                "default": true
            },
            "workbench.quickOpen.closeOnFocusLost": {
                "type": "boolean",
                "description": ( localize(
                    3935,
                    "Controls whether Quick Open should close automatically once it loses focus."
                )),
                "default": true
            },
            "workbench.quickOpen.preserveInput": {
                "type": "boolean",
                "description": ( localize(
                    3936,
                    "Controls whether the last typed input to Quick Open should be restored when opening it the next time."
                )),
                "default": false
            },
            "workbench.settings.openDefaultSettings": {
                "type": "boolean",
                "description": ( localize(
                    3937,
                    "Controls whether opening settings also opens an editor showing all default settings."
                )),
                "default": false
            },
            "workbench.settings.useSplitJSON": {
                "type": "boolean",
                "markdownDescription": ( localize(
                    3938,
                    "Controls whether to use the split JSON editor when editing settings as JSON."
                )),
                "default": false
            },
            "workbench.settings.openDefaultKeybindings": {
                "type": "boolean",
                "description": ( localize(
                    3939,
                    "Controls whether opening keybinding settings also opens an editor showing all default keybindings."
                )),
                "default": false
            },
            "workbench.settings.alwaysShowAdvancedSettings": {
                "type": "boolean",
                "description": ( localize(
                    3940,
                    "Controls whether advanced settings are always shown in the settings editor without requiring the `@tag:advanced` filter."
                )),
                "default": product.quality !== "stable"
            },
            "workbench.sideBar.location": {
                "type": "string",
                "enum": ["left", "right"],
                "default": "left",
                "description": ( localize(
                    3941,
                    "Controls the location of the primary side bar and activity bar. They can either show on the left or right of the workbench. The secondary side bar will show on the opposite side of the workbench."
                ))
            },
            "workbench.panel.showLabels": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    3942,
                    "Controls whether activity items in the panel title are shown as label or icon."
                ))
            },
            "workbench.panel.defaultLocation": {
                "type": "string",
                "enum": ["left", "bottom", "top", "right"],
                "default": "bottom",
                "description": ( localize(
                    3943,
                    "Controls the default location of the panel (Terminal, Debug Console, Output, Problems) in a new workspace. It can either show at the bottom, top, right, or left of the editor area."
                ))
            },
            "workbench.panel.opensMaximized": {
                "type": "string",
                "enum": ["always", "never", "preserve"],
                "default": "preserve",
                "description": ( localize(
                    3944,
                    "Controls whether the panel opens maximized. It can either always open maximized, never open maximized, or open to the last state it was in before being closed."
                )),
                "enumDescriptions": [( localize(3945, "Always maximize the panel when opening it.")), ( localize(3946, "Never maximize the panel when opening it.")), ( localize(3947, "Open the panel to the state that it was in, before it was closed."))]
            },
            "workbench.secondarySideBar.defaultVisibility": {
                "type": "string",
                "enum": [
                    "hidden",
                    "visibleInWorkspace",
                    "visible",
                    "maximizedInWorkspace",
                    "maximized"
                ],
                "default": "visibleInWorkspace",
                "description": ( localize(
                    3948,
                    "Controls the default visibility of the secondary side bar in workspaces or empty windows that are opened for the first time. Can be overridden by the agent sessions startup editor setting."
                )),
                "enumDescriptions": [( localize(3949, "The secondary side bar is hidden by default.")), ( localize(
                    3950,
                    "The secondary side bar is visible by default if a workspace is opened."
                )), ( localize(3951, "The secondary side bar is visible by default.")), ( localize(
                    3952,
                    "The secondary side bar is visible and maximized by default if a workspace is opened."
                )), ( localize(3953, "The secondary side bar is visible and maximized by default."))]
            },
            "workbench.secondarySideBar.forceMaximized": {
                "type": "boolean",
                "default": false,
                tags: ["experimental"],
                "description": ( localize(
                    3954,
                    "Controls whether the secondary side bar is enforced to always show maximized on startup and when there are no open editors, in layouts that support a maximized secondary side bar."
                ))
            },
            "workbench.secondarySideBar.showLabels": {
                "type": "boolean",
                "default": true,
                "markdownDescription": ( localize(
                    3955,
                    "Controls whether activity items in the secondary side bar title are shown as label or icon. This setting only has an effect when {0} is not set to {1}.",
                    "`#workbench.activityBar.location#`",
                    "`top`"
                ))
            },
            "workbench.statusBar.visible": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    3956,
                    "Controls the visibility of the status bar at the bottom of the workbench."
                ))
            },
            [NotificationsSettings.NOTIFICATIONS_POSITION]: {
                "type": "string",
                "enum": [
                    NotificationsPosition.BOTTOM_RIGHT,
                    NotificationsPosition.BOTTOM_LEFT,
                    NotificationsPosition.TOP_RIGHT
                ],
                "default": NotificationsPosition.BOTTOM_RIGHT,
                "description": ( localize(
                    3957,
                    "Controls the position of the notification toasts and notification center."
                )),
                "enumDescriptions": [( localize(3958, "Show notifications in the bottom right corner.")), ( localize(3959, "Show notifications in the bottom left corner.")), ( localize(
                    3960,
                    "Show notifications in the top right corner, similar to OS-level notifications."
                ))],
                "tags": ["experimental"],
                "experiment": {
                    "mode": "auto"
                }
            },
            [NotificationsSettings.NOTIFICATIONS_BUTTON]: {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    3961,
                    "Controls the visibility of the Notifications button in the title bar. Only applies when notifications are positioned at the top right."
                ))
            },
            [LayoutSettings.ACTIVITY_BAR_LOCATION]: {
                "type": "string",
                "enum": ["default", "top", "bottom", "hidden"],
                "default": "default",
                "markdownDescription": ( localize(
                    3962,
                    "Controls the location of the Activity Bar relative to the Primary and Secondary Side Bars."
                )),
                "enumDescriptions": [( localize(
                    3963,
                    "Show the Activity Bar on the side of the Primary Side Bar and on top of the Secondary Side Bar."
                )), ( localize(
                    3964,
                    "Show the Activity Bar on top of the Primary and Secondary Side Bars."
                )), ( localize(
                    3965,
                    "Show the Activity Bar at the bottom of the Primary and Secondary Side Bars."
                )), ( localize(3966, "Hide the Activity Bar in the Primary and Secondary Side Bars."))]
            },
            [LayoutSettings.ACTIVITY_BAR_AUTO_HIDE]: {
                "type": "boolean",
                "default": false,
                "markdownDescription": ( localize(
                    3967,
                    "Controls whether the Activity Bar is automatically hidden when there is only one view container to show. This applies to the Primary and Secondary Side Bars when {0} is set to {1} or {2}.",
                    "`#workbench.activityBar.location#`",
                    "`top`",
                    "`bottom`"
                ))
            },
            [LayoutSettings.ACTIVITY_BAR_COMPACT]: {
                "type": "boolean",
                "default": false,
                "markdownDescription": ( localize(
                    3968,
                    "Controls whether the Activity Bar uses a compact layout with smaller icons and reduced width. This setting only applies when {0} is set to {1}.",
                    "`#workbench.activityBar.location#`",
                    "`default`"
                ))
            },
            "workbench.activityBar.iconClickBehavior": {
                "type": "string",
                "enum": ["toggle", "focus"],
                "default": "toggle",
                "markdownDescription": ( localize(
                    3969,
                    "Controls the behavior of clicking an Activity Bar icon in the workbench. This value is ignored when {0} is not set to {1}.",
                    "`#workbench.activityBar.location#`",
                    "`default`"
                )),
                "enumDescriptions": [( localize(3970, "Hide the Primary Side Bar if the clicked item is already visible.")), ( localize(3971, "Focus the Primary Side Bar if the clicked item is already visible."))]
            },
            "workbench.view.alwaysShowHeaderActions": {
                "type": "boolean",
                "default": false,
                "description": ( localize(
                    3972,
                    "Controls the visibility of view header actions. View header actions may either be always visible, or only visible when that view is focused or hovered over."
                ))
            },
            "workbench.view.showQuietly": {
                "type": "object",
                "description": ( localize(
                    3973,
                    "If an extension requests a hidden view to be shown, display a clickable status bar indicator instead."
                )),
                "scope": ConfigurationScope.WINDOW,
                "properties": {
                    "workbench.panel.output": {
                        "type": "boolean",
                        "description": ( localize(3974, "Output view"))
                    }
                },
                "additionalProperties": false
            },
            "workbench.fontAliasing": {
                "type": "string",
                "enum": ["default", "antialiased", "none", "auto"],
                "default": "default",
                "description": ( localize(3975, "Controls font aliasing method in the workbench.")),
                "enumDescriptions": [( localize(
                    3976,
                    "Sub-pixel font smoothing. On most non-retina displays this will give the sharpest text."
                )), ( localize(
                    3977,
                    "Smooth the font on the level of the pixel, as opposed to the subpixel. Can make the font appear lighter overall."
                )), ( localize(3978, "Disables font smoothing. Text will show with jagged sharp edges.")), ( localize(
                    3979,
                    "Applies `default` or `antialiased` automatically based on the DPI of displays."
                ))],
                "included": isMacintosh
            },
            "workbench.settings.editor": {
                "type": "string",
                "enum": ["ui", "json"],
                "enumDescriptions": [( localize(3980, "Use the settings UI editor.")), ( localize(3981, "Use the JSON file editor."))],
                "description": ( localize(3982, "Determines which Settings editor to use by default.")),
                "default": "ui",
                "scope": ConfigurationScope.WINDOW
            },
            "workbench.settings.showAISearchToggle": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    3983,
                    "Controls whether the AI search results toggle is shown in the search bar in the Settings editor after doing a search and once AI search results are available."
                ))
            },
            "workbench.hover.delay": {
                "type": "number",
                "description": ( localize(
                    3984,
                    "Controls the delay in milliseconds after which the hover is shown for workbench items (ex. some extension provided tree view items). Already visible items may require a refresh before reflecting this setting change."
                )),
                "default": isMacintosh ? 1500 : 500,
                "minimum": 0
            },
            "workbench.hover.reducedDelay": {
                "type": "number",
                "description": ( localize(
                    3985,
                    "Controls the reduced delay in milliseconds used for showing hovers in specific contexts where faster feedback is beneficial."
                )),
                "default": 500,
                "minimum": 0
            },
            "workbench.reduceMotion": {
                type: "string",
                description: ( localize(
                    3986,
                    "Controls whether the workbench should render with fewer animations."
                )),
                "enumDescriptions": [( localize(3987, "Always render with reduced motion.")), ( localize(3988, "Do not render with reduced motion")), ( localize(3989, "Render with reduced motion based on OS configuration."))],
                default: "auto",
                tags: ["accessibility"],
                enum: ["on", "off", "auto"]
            },
            "workbench.reduceTransparency": {
                type: "string",
                description: ( localize(
                    3990,
                    "Controls whether the workbench should render with fewer transparency and blur effects for improved performance."
                )),
                "enumDescriptions": [( localize(3991, "Always render without transparency and blur effects.")), ( localize(3992, "Do not reduce transparency and blur effects.")), ( localize(3993, "Reduce transparency and blur effects based on OS configuration."))],
                default: "off",
                tags: ["accessibility"],
                enum: ["on", "off", "auto"]
            },
            "workbench.navigationControl.enabled": {
                "type": "boolean",
                "default": true,
                "markdownDescription": isWeb ? ( localize(3994, "Controls whether the navigation control in the title bar is shown.")) : ( localize(
                    3995,
                    "Controls whether the navigation control is shown in the custom title bar. This setting only has an effect when {0} is not set to {1}.",
                    "`#window.customTitleBarVisibility#`",
                    "`never`"
                ))
            },
            [LayoutSettings.LAYOUT_ACTIONS]: {
                "type": "boolean",
                "default": true,
                "markdownDescription": isWeb ? ( localize(3996, "Controls whether the layout control in the title bar is shown.")) : ( localize(
                    3997,
                    "Controls whether the layout control is shown in the custom title bar. This setting only has an effect when {0} is not set to {1}.",
                    "`#window.customTitleBarVisibility#`",
                    "`never`"
                ))
            },
            "workbench.layoutControl.type": {
                "type": "string",
                "enum": ["menu", "toggles", "both"],
                "enumDescriptions": [( localize(3998, "Shows a single button with a dropdown of layout options.")), ( localize(
                    3999,
                    "Shows several buttons for toggling the visibility of the panels and side bar."
                )), ( localize(4000, "Shows both the dropdown and toggle buttons."))],
                "default": "both",
                "description": ( localize(
                    4001,
                    "Controls whether the layout control in the custom title bar is displayed as a single menu button or with multiple UI toggles."
                ))
            },
            "workbench.tips.enabled": {
                "type": "boolean",
                "default": true,
                "description": ( localize(4002, "When enabled, will show the watermark tips when no editor is open."))
            },
            [LayoutSettings.SHADOWS]: {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    4003,
                    "Controls whether shadow effects are shown around the side panels and other workbench elements."
                ))
            }
        }
    });
    let windowTitleDescription = ( localize(
        4004,
        "Controls the window title based on the current context such as the opened workspace or active editor. Variables are substituted based on the context:"
    ));
    windowTitleDescription += "\n- " + [( localize(4005, "`${activeEditorShort}`: the file name (e.g. myFile.txt).")), ( localize(
        4006,
        "`${activeEditorMedium}`: the path of the file relative to the workspace folder (e.g. myFolder/myFileFolder/myFile.txt)."
    )), ( localize(
        4007,
        "`${activeEditorLong}`: the full path of the file (e.g. /Users/Development/myFolder/myFileFolder/myFile.txt)."
    )), ( localize(
        4008,
        "`${activeEditorLanguageId}`: the language identifier of the active editor (e.g. typescript)."
    )), ( localize(
        4009,
        "`${activeFolderShort}`: the name of the folder the file is contained in (e.g. myFileFolder)."
    )), ( localize(
        4010,
        "`${activeFolderMedium}`: the path of the folder the file is contained in, relative to the workspace folder (e.g. myFolder/myFileFolder)."
    )), ( localize(
        4011,
        "`${activeFolderLong}`: the full path of the folder the file is contained in (e.g. /Users/Development/myFolder/myFileFolder)."
    )), ( localize(
        4012,
        "`${folderName}`: name of the workspace folder the file is contained in (e.g. myFolder)."
    )), ( localize(
        4013,
        "`${folderPath}`: file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder)."
    )), ( localize(
        4014,
        "`${rootName}`: name of the workspace with optional remote name and workspace indicator if applicable (e.g. myFolder, myRemoteFolder [SSH] or myWorkspace (Workspace))."
    )), ( localize(
        4015,
        "`${rootNameShort}`: shortened name of the workspace without suffixes (e.g. myFolder, myRemoteFolder or myWorkspace)."
    )), ( localize(
        4016,
        "`${rootPath}`: file path of the opened workspace or folder (e.g. /Users/Development/myWorkspace)."
    )), ( localize(
        4017,
        "`${profileName}`: name of the profile in which the workspace is opened (e.g. Data Science (Profile)). Ignored if default profile is used."
    )), ( localize(4018, "`${appName}`: e.g. VS Code.")), ( localize(4019, "`${remoteName}`: e.g. SSH")), ( localize(
        4020,
        "`${dirty}`: an indicator for when the active editor has unsaved changes."
    )), ( localize(4021, "`${focusedView}`: the name of the view that is currently focused.")), ( localize(
        4022,
        "`${activeRepositoryName}`: the name of the active repository (e.g. vscode)."
    )), ( localize(
        4023,
        "`${activeRepositoryBranchName}`: the name of the active branch in the active repository (e.g. main)."
    )), ( localize(
        4024,
        "`${activeEditorState}`: provides information about the state of the active editor (e.g. modified). This will be appended by default when in screen reader mode with {0} enabled.",
        "`accessibility.windowTitleOptimized`"
    )), ( localize(
        4025,
        "`${separator}`: a conditional separator (\" - \") that only shows when surrounded by variables with values or static text."
    ))].join("\n- ");
    registry.registerConfiguration({
        ...windowConfigurationNodeBase,
        "properties": {
            "window.title": {
                "type": "string",
                "default": defaultWindowTitle,
                "markdownDescription": windowTitleDescription
            },
            "window.titleSeparator": {
                "type": "string",
                "default": defaultWindowTitleSeparator,
                "markdownDescription": ( localize(4026, "Separator used by {0}.", "`#window.title#`"))
            },
            [LayoutSettings.COMMAND_CENTER]: {
                type: "boolean",
                default: true,
                markdownDescription: isWeb ? ( localize(4027, "Show command launcher together with the window title.")) : ( localize(
                    4028,
                    "Show command launcher together with the window title. This setting only has an effect when {0} is not set to {1}.",
                    "`#window.customTitleBarVisibility#`",
                    "`never`"
                ))
            },
            "window.menuBarVisibility": {
                "type": "string",
                "enum": ["classic", "visible", "toggle", "hidden", "compact"],
                "markdownEnumDescriptions": [( localize(
                    4029,
                    "Menu is displayed at the top of the window and only hidden in full screen mode."
                )), ( localize(
                    4030,
                    "Menu is always visible at the top of the window even in full screen mode."
                )), isMacintosh ? ( localize(
                    4031,
                    "Menu is hidden but can be displayed at the top of the window by executing the `Focus Application Menu` command."
                )) : ( localize(
                    4032,
                    "Menu is hidden but can be displayed at the top of the window via the Alt key."
                )), ( localize(4033, "Menu is always hidden.")), isWeb ? ( localize(4034, "Menu is displayed as a compact button in the side bar.")) : ( localize(
                    4035,
                    "Menu is displayed as a compact button in the side bar. This value is ignored when {0} is {1} and {2} is either {3} or {4}.",
                    "`#window.titleBarStyle#`",
                    "`native`",
                    "`#window.menuStyle#`",
                    "`native`",
                    "`inherit`"
                ))],
                "default": isWeb ? "compact" : "classic",
                "scope": ConfigurationScope.APPLICATION,
                "markdownDescription": isMacintosh ? ( localize(
                    4036,
                    "Control the visibility of the menu bar. A setting of 'toggle' means that the menu bar is hidden and executing `Focus Application Menu` will show it. A setting of 'compact' will move the menu into the side bar."
                )) : ( localize(
                    4037,
                    "Control the visibility of the menu bar. A setting of 'toggle' means that the menu bar is hidden and a single press of the Alt key will show it. A setting of 'compact' will move the menu into the side bar."
                )),
                "included": isWindows || isLinux || isWeb
            },
            "window.enableMenuBarMnemonics": {
                "type": "boolean",
                "default": true,
                "scope": ConfigurationScope.APPLICATION,
                "description": ( localize(
                    4038,
                    "Controls whether the main menus can be opened via Alt-key shortcuts. Disabling mnemonics allows to bind these Alt-key shortcuts to editor commands instead."
                )),
                "included": isWindows || isLinux
            },
            "window.customMenuBarAltFocus": {
                "type": "boolean",
                "default": true,
                "scope": ConfigurationScope.APPLICATION,
                "markdownDescription": ( localize(
                    4039,
                    "Controls whether the menu bar will be focused by pressing the Alt-key. This setting has no effect on toggling the menu bar with the Alt-key."
                )),
                "included": isWindows || isLinux
            },
            "window.openFilesInNewWindow": {
                "type": "string",
                "enum": ["on", "off", "default"],
                "enumDescriptions": [( localize(4040, "Files will open in a new window.")), ( localize(
                    4041,
                    "Files will open in the window with the files' folder open or the last active window."
                )), isMacintosh ? ( localize(
                    4042,
                    "Files will open in the window with the files' folder open or the last active window unless opened via the Dock or from Finder."
                )) : ( localize(
                    4043,
                    "Files will open in a new window unless picked from within the application (e.g. via the File menu)."
                ))],
                "default": "off",
                "scope": ConfigurationScope.APPLICATION,
                "markdownDescription": isMacintosh ? ( localize(
                    4044,
                    "Controls whether files should open in a new window when using a command line or file dialog.\nNote that there can still be cases where this setting is ignored (e.g. when using the `--new-window` or `--reuse-window` command line option)."
                )) : ( localize(
                    4045,
                    "Controls whether files should open in a new window when using a command line or file dialog.\nNote that there can still be cases where this setting is ignored (e.g. when using the `--new-window` or `--reuse-window` command line option)."
                ))
            },
            "window.openFoldersInNewWindow": {
                "type": "string",
                "enum": ["on", "off", "default"],
                "enumDescriptions": [( localize(4046, "Folders will open in a new window.")), ( localize(4047, "Folders will replace the last active window.")), ( localize(
                    4048,
                    "Folders will open in a new window unless a folder is picked from within the application (e.g. via the File menu)."
                ))],
                "default": "default",
                "scope": ConfigurationScope.APPLICATION,
                "markdownDescription": ( localize(
                    4049,
                    "Controls whether folders should open in a new window or replace the last active window.\nNote that there can still be cases where this setting is ignored (e.g. when using the `--new-window` or `--reuse-window` command line option)."
                ))
            },
            "window.confirmBeforeClose": {
                "type": "string",
                "enum": ["always", "keyboardOnly", "never"],
                "enumDescriptions": [isWeb ? ( localize(
                    4050,
                    "Always try to ask for confirmation. Note that browsers may still decide to close a tab or window without confirmation."
                )) : ( localize(4051, "Always ask for confirmation.")), isWeb ? ( localize(
                    4052,
                    "Only ask for confirmation if a keybinding was used to close the window. Note that detection may not be possible in some cases."
                )) : ( localize(4053, "Only ask for confirmation if a keybinding was used.")), isWeb ? ( localize(
                    4054,
                    "Never explicitly ask for confirmation unless data loss is imminent."
                )) : ( localize(4055, "Never explicitly ask for confirmation."))],
                "default": (isWeb && !isStandalone()) ? "keyboardOnly" : "never",
                "markdownDescription": isWeb ? ( localize(
                    4056,
                    "Controls whether to show a confirmation dialog before closing the browser tab or window. Note that even if enabled, browsers may still decide to close a tab or window without confirmation and that this setting is only a hint that may not work in all cases."
                )) : ( localize(
                    4057,
                    "Controls whether to show a confirmation dialog before closing a window or quitting the application."
                )),
                "scope": ConfigurationScope.APPLICATION
            }
        }
    });
    registerWorkbenchContribution2(
        DynamicWindowConfiguration.ID,
        DynamicWindowConfiguration,
        WorkbenchPhase.Eventually
    );
    registry.registerConfiguration({
        ...problemsConfigurationNodeBase,
        "properties": {
            "problems.visibility": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    4058,
                    "Controls whether the problems are visible throughout the editor and workbench."
                ))
            }
        }
    });
    registry.registerConfiguration({
        "id": "zenMode",
        "order": 9,
        "title": ( localize(4059, "Zen Mode")),
        "type": "object",
        "properties": {
            "zenMode.fullScreen": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    4060,
                    "Controls whether turning on Zen Mode also puts the workbench into full screen mode."
                ))
            },
            "zenMode.centerLayout": {
                "type": "boolean",
                "default": true,
                "description": ( localize(4061, "Controls whether turning on Zen Mode also centers the layout."))
            },
            "zenMode.showTabs": {
                "type": "string",
                "enum": ["multiple", "single", "none"],
                "description": ( localize(
                    4062,
                    "Controls whether turning on Zen Mode should show multiple editor tabs, a single editor tab, or hide the editor title area completely."
                )),
                "enumDescriptions": [( localize(4063, "Each editor is displayed as a tab in the editor title area.")), ( localize(
                    4064,
                    "The active editor is displayed as a single large tab in the editor title area."
                )), ( localize(4065, "The editor title area is not displayed."))],
                "default": "multiple"
            },
            "zenMode.hideStatusBar": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    4066,
                    "Controls whether turning on Zen Mode also hides the status bar at the bottom of the workbench."
                ))
            },
            "zenMode.hideActivityBar": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    4067,
                    "Controls whether turning on Zen Mode also hides the activity bar either at the left or right of the workbench."
                ))
            },
            "zenMode.hideLineNumbers": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    4068,
                    "Controls whether turning on Zen Mode also hides the editor line numbers."
                ))
            },
            "zenMode.restore": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    4069,
                    "Controls whether a window should restore to Zen Mode if it was exited in Zen Mode."
                ))
            },
            "zenMode.silentNotifications": {
                "type": "boolean",
                "default": true,
                "description": ( localize(
                    4070,
                    "Controls whether notifications do not disturb mode should be enabled while in Zen Mode. If true, only error notifications will pop out."
                ))
            }
        }
    });
})();
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([{
    key: "workbench.activityBar.visible",
    migrateFn: value => {
        const result = [];
        if (value !== undefined) {
            result.push(["workbench.activityBar.visible", {
                value: undefined
            }]);
        }
        if (value === false) {
            result.push([LayoutSettings.ACTIVITY_BAR_LOCATION, {
                value: ActivityBarPosition.HIDDEN
            }]);
        }
        return result;
    }
}]);
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([{
    key: LayoutSettings.ACTIVITY_BAR_LOCATION,
    migrateFn: value => {
        const results = [];
        if (value === "side") {
            results.push([LayoutSettings.ACTIVITY_BAR_LOCATION, {
                value: ActivityBarPosition.DEFAULT
            }]);
        }
        return results;
    }
}]);
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([{
    key: "workbench.editor.doubleClickTabToToggleEditorGroupSizes",
    migrateFn: value => {
        const results = [];
        if (typeof value === "boolean") {
            value = value ? "expand" : "off";
            results.push(["workbench.editor.doubleClickTabToToggleEditorGroupSizes", {
                value
            }]);
        }
        return results;
    }
}, {
    key: LayoutSettings.EDITOR_TABS_MODE,
    migrateFn: value => {
        const results = [];
        if (typeof value === "boolean") {
            value = value ? EditorTabsMode.MULTIPLE : EditorTabsMode.SINGLE;
            results.push([LayoutSettings.EDITOR_TABS_MODE, {
                value
            }]);
        }
        return results;
    }
}, {
    key: "workbench.editor.tabCloseButton",
    migrateFn: value => {
        const result = [];
        if (value === "left" || value === "right") {
            result.push(["workbench.editor.tabActionLocation", {
                value
            }]);
        } else if (value === "off") {
            result.push(["workbench.editor.tabActionCloseVisibility", {
                value: false
            }]);
        }
        return result;
    }
}, {
    key: "zenMode.hideTabs",
    migrateFn: value => {
        const result = [["zenMode.hideTabs", {
            value: undefined
        }]];
        if (value === true) {
            result.push(["zenMode.showTabs", {
                value: "single"
            }]);
        }
        return result;
    }
}]);
