|
6 | 6 | import { Registry } from 'vs/platform/registry/common/platform'; |
7 | 7 | import * as nls from 'vs/nls'; |
8 | 8 | import { IConfigurationRegistry, Extensions as ConfigurationExtensions, ConfigurationScope } from 'vs/platform/configuration/common/configurationRegistry'; |
9 | | -import { isMacintosh } from 'vs/base/common/platform'; |
| 9 | +import { isMacintosh, isWindows, isLinux, isWeb } from 'vs/base/common/platform'; |
10 | 10 |
|
11 | 11 | // Configuration |
12 | 12 | (function registerConfiguration(): void { |
@@ -278,6 +278,34 @@ import { isMacintosh } from 'vs/base/common/platform'; |
278 | 278 | 'type': 'string', |
279 | 279 | 'default': isMacintosh ? '${activeEditorShort}${separator}${rootName}' : '${dirty}${activeEditorShort}${separator}${rootName}${separator}${appName}', |
280 | 280 | 'markdownDescription': windowTitleDescription |
| 281 | + }, |
| 282 | + 'window.menuBarVisibility': { |
| 283 | + 'type': 'string', |
| 284 | + 'enum': ['default', 'visible', 'toggle', 'hidden'], |
| 285 | + 'enumDescriptions': [ |
| 286 | + nls.localize('window.menuBarVisibility.default', "Menu is only hidden in full screen mode."), |
| 287 | + nls.localize('window.menuBarVisibility.visible', "Menu is always visible even in full screen mode."), |
| 288 | + nls.localize('window.menuBarVisibility.toggle', "Menu is hidden but can be displayed via Alt key."), |
| 289 | + nls.localize('window.menuBarVisibility.hidden', "Menu is always hidden.") |
| 290 | + ], |
| 291 | + 'default': 'default', |
| 292 | + 'scope': ConfigurationScope.APPLICATION, |
| 293 | + 'description': nls.localize('menuBarVisibility', "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. By default, the menu bar will be visible, unless the window is full screen."), |
| 294 | + 'included': isWindows || isLinux || isWeb |
| 295 | + }, |
| 296 | + 'window.enableMenuBarMnemonics': { |
| 297 | + 'type': 'boolean', |
| 298 | + 'default': true, |
| 299 | + 'scope': ConfigurationScope.APPLICATION, |
| 300 | + 'description': nls.localize('enableMenuBarMnemonics', "If enabled, the main menus can be opened via Alt-key shortcuts. Disabling mnemonics allows to bind these Alt-key shortcuts to editor commands instead."), |
| 301 | + 'included': isWindows || isLinux || isWeb |
| 302 | + }, |
| 303 | + 'window.disableCustomMenuBarAltFocus': { |
| 304 | + 'type': 'boolean', |
| 305 | + 'default': false, |
| 306 | + 'scope': ConfigurationScope.APPLICATION, |
| 307 | + 'markdownDescription': nls.localize('disableCustomMenuBarAltFocus', "If enabled, disables the ability to focus the menu bar with the Alt-key when not set to toggle."), |
| 308 | + 'included': isWindows || isLinux || isWeb |
281 | 309 | } |
282 | 310 | } |
283 | 311 | }); |
|
0 commit comments