mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 18:46:36 -05:00
* Merge from vscode 4636be2b71c87bfb0bfe3c94278b447a5efcc1f1 * remove tests that aren't working
38 lines
1.8 KiB
TypeScript
38 lines
1.8 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as nls from 'vs/nls';
|
|
import { release } from 'os';
|
|
import { OS, OperatingSystem } from 'vs/base/common/platform';
|
|
import { Registry } from 'vs/platform/registry/common/platform';
|
|
import { Extensions as ConfigExtensions, IConfigurationNode, IConfigurationRegistry } from 'vs/platform/configuration/common/configurationRegistry';
|
|
|
|
const configurationRegistry = Registry.as<IConfigurationRegistry>(ConfigExtensions.Configuration);
|
|
const keyboardConfiguration: IConfigurationNode = {
|
|
'id': 'keyboard',
|
|
'order': 15,
|
|
'type': 'object',
|
|
'title': nls.localize('keyboardConfigurationTitle', "Keyboard"),
|
|
'properties': {
|
|
'keyboard.touchbar.enabled': {
|
|
'type': 'boolean',
|
|
'default': true,
|
|
'description': nls.localize('touchbar.enabled', "Enables the macOS touchbar buttons on the keyboard if available."),
|
|
'included': OS === OperatingSystem.Macintosh && parseFloat(release()) >= 16 // Minimum: macOS Sierra (10.12.x = darwin 16.x)
|
|
},
|
|
'keyboard.touchbar.ignored': {
|
|
'type': 'array',
|
|
'items': {
|
|
'type': 'string'
|
|
},
|
|
'default': [],
|
|
'description': nls.localize('touchbar.ignored', 'A set of identifiers for entries in the touchbar that should not show up (for example `workbench.action.navigateBack`.'),
|
|
'included': OS === OperatingSystem.Macintosh && parseFloat(release()) >= 16 // Minimum: macOS Sierra (10.12.x = darwin 16.x)
|
|
}
|
|
}
|
|
};
|
|
|
|
configurationRegistry.registerConfiguration(keyboardConfiguration);
|