Support tags on settings to filter in settings editor (#55094)

* Support tags on settings to filter in settings editor

* Revert adding tags to api until we are ready
This commit is contained in:
Ramya Rao 2018-07-25 15:51:28 -07:00 committed by GitHub
parent ad9cc79cf5
commit d8bf1443cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 10 deletions

View file

@ -911,7 +911,8 @@
"git.autofetch": {
"type": "boolean",
"description": "%config.autofetch%",
"default": false
"default": false,
"tags": ["backgroundOnlineFeature"]
},
"git.confirmSync": {
"type": "boolean",

View file

@ -73,7 +73,8 @@
"type": "boolean",
"default": false,
"description": "%typescript.disableAutomaticTypeAcquisition%",
"scope": "window"
"scope": "window",
"tags": ["backgroundOnlineFeature"]
},
"typescript.npm": {
"type": [

View file

@ -78,6 +78,7 @@ export interface IConfigurationPropertySchema extends IJSONSchema {
scope?: ConfigurationScope;
notMultiRootAdopted?: boolean;
included?: boolean;
tags?: string[];
}
export interface IConfigurationNode {

View file

@ -167,7 +167,8 @@ Registry.as<IConfigurationRegistry>(Extensions.Configuration).registerConfigurat
'telemetry.enableTelemetry': {
'type': 'boolean',
'description': localize('telemetry.enableTelemetry', "Enable usage data and errors to be sent to Microsoft."),
'default': true
'default': true,
'tags': ['backgroundOnlineFeature']
}
}
});

View file

@ -21,18 +21,21 @@ configurationRegistry.registerConfiguration({
'enum': ['none', 'default'],
'default': 'default',
'scope': ConfigurationScope.APPLICATION,
'description': nls.localize('updateChannel', "Configure whether you receive automatic updates from an update channel. Requires a restart after change.")
'description': nls.localize('updateChannel', "Configure whether you receive automatic updates from an update channel. Requires a restart after change."),
'tags': ['backgroundOnlineFeature']
},
'update.enableWindowsBackgroundUpdates': {
'type': 'boolean',
'default': true,
'scope': ConfigurationScope.APPLICATION,
'description': nls.localize('enableWindowsBackgroundUpdates', "Enables Windows background updates.")
'description': nls.localize('enableWindowsBackgroundUpdates', "Enables Windows background updates."),
'tags': ['backgroundOnlineFeature']
},
'update.showReleaseNotes': {
'type': 'boolean',
'default': true,
'description': nls.localize('showReleaseNotes', "Show Release Notes after an update.")
'description': nls.localize('showReleaseNotes', "Show Release Notes after an update."),
'tags': ['backgroundOnlineFeature']
}
}
});

View file

@ -488,7 +488,8 @@ configurationRegistry.registerConfiguration({
'type': 'boolean',
'description': nls.localize('enableNaturalLanguageSettingsSearch', "Controls whether to enable the natural language search mode for settings."),
'default': true,
'scope': ConfigurationScope.WINDOW
'scope': ConfigurationScope.WINDOW,
'tags': ['backgroundOnlineFeature']
},
'workbench.settings.settingsSearchTocBehavior': {
'type': 'string',

View file

@ -206,7 +206,8 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
type: 'boolean',
description: localize('extensionsAutoUpdate', "Automatically update extensions."),
default: true,
scope: ConfigurationScope.APPLICATION
scope: ConfigurationScope.APPLICATION,
tags: ['backgroundOnlineFeature']
},
'extensions.ignoreRecommendations': {
type: 'boolean',
@ -216,7 +217,8 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
'extensions.showRecommendationsOnlyOnDemand': {
type: 'boolean',
description: localize('extensionsShowRecommendationsOnlyOnDemand', "When enabled, recommendations will not be fetched or shown unless specifically requested by the user."),
default: false
default: false,
tags: ['backgroundOnlineFeature']
},
'extensions.closeExtensionDetailsOnViewChange': {
type: 'boolean',

View file

@ -37,7 +37,8 @@ configurationRegistry.registerConfiguration({
'telemetry.enableCrashReporter': {
'type': 'boolean',
'description': nls.localize('telemetry.enableCrashReporting', "Enable crash reports to be sent to Microsoft.\nThis option requires restart to take effect."),
'default': true
'default': true,
'tags': ['backgroundOnlineFeature']
}
}
});