Skip to content

Commit

Permalink
Hide settings editor feedback button in stable
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed May 31, 2018
1 parent 90581c7 commit 0853749
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/vs/workbench/parts/preferences/browser/settingsEditor2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { IPreferencesSearchService, ISearchProvider } from 'vs/workbench/parts/p
import { IPreferencesService, ISearchResult, ISettingsEditorModel } from 'vs/workbench/services/preferences/common/preferences';
import { SettingsEditor2Input } from 'vs/workbench/services/preferences/common/preferencesEditorInput';
import { DefaultSettingsEditorModel } from 'vs/workbench/services/preferences/common/preferencesModels';
import { IEnvironmentService } from 'vs/platform/environment/common/environment';

const $ = DOM.$;

Expand Down Expand Up @@ -72,7 +73,8 @@ export class SettingsEditor2 extends BaseEditor {
@IPreferencesService private preferencesService: IPreferencesService,
@IInstantiationService private instantiationService: IInstantiationService,
@IPreferencesSearchService private preferencesSearchService: IPreferencesSearchService,
@ILogService private logService: ILogService
@ILogService private logService: ILogService,
@IEnvironmentService private environmentService: IEnvironmentService
) {
super(SettingsEditor2.ID, telemetryService, themeService);
this.delayedModifyLogging = new Delayer<void>(1000);
Expand Down Expand Up @@ -188,7 +190,10 @@ export class SettingsEditor2 extends BaseEditor {
const bodyContainer = DOM.append(parent, $('.settings-body'));

this.createList(bodyContainer);
this.createFeedbackButton(bodyContainer);

if (this.environmentService.appQuality !== 'stable') {
this.createFeedbackButton(bodyContainer);
}
}

private createList(parent: HTMLElement): void {
Expand Down

0 comments on commit 0853749

Please sign in to comment.