From 582cd9547d435735e583be540d0ba0c8262880c8 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Wed, 1 Aug 2018 18:05:50 -0700 Subject: [PATCH] Show online services action only in Insiders for now --- .../preferences/browser/settingsEditor2.ts | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/vs/workbench/parts/preferences/browser/settingsEditor2.ts b/src/vs/workbench/parts/preferences/browser/settingsEditor2.ts index 3346f396a0b..f9738e7c3f6 100644 --- a/src/vs/workbench/parts/preferences/browser/settingsEditor2.ts +++ b/src/vs/workbench/parts/preferences/browser/settingsEditor2.ts @@ -230,19 +230,23 @@ export class SettingsEditor2 extends BaseEditor { actionRunner: this.actionRunner }); - const actions = [ + const actions: Action[] = [ this.instantiationService.createInstance(FilterByTagAction, localize('filterModifiedLabel', "Show modified settings"), MODIFIED_SETTING_TAG, - this), - this.instantiationService.createInstance( - FilterByTagAction, - localize('filterOnlineServicesLabel', "Show settings for online services"), - ONLINE_SERVICES_SETTING_TAG, - this), - new Separator(), - this.instantiationService.createInstance(OpenSettingsAction) + this) ]; + if (this.environmentService.appQuality !== 'stable') { + actions.push( + this.instantiationService.createInstance( + FilterByTagAction, + localize('filterOnlineServicesLabel', "Show settings for online services"), + ONLINE_SERVICES_SETTING_TAG, + this)); + actions.push(new Separator()); + } + actions.push(this.instantiationService.createInstance(OpenSettingsAction)); + this.toolbar.setActions([], actions)(); this.toolbar.context = { target: this.settingsTargetsWidget.settingsTarget }; } -- GitLab