put feature behind preview flag (#13147)

* put feature behind preview flag

* remove unused import
This commit is contained in:
Alan Ren
2020-10-30 10:17:54 -07:00
committed by GitHub
parent f5fc5c648e
commit 82d5fe3821
15 changed files with 30 additions and 37 deletions

View File

@@ -125,8 +125,8 @@ export class ConnectionDialogWidget extends Modal {
{ hasSpinner: true, spinnerTitle: localize('connecting', "Connecting"), hasErrors: true });
this._register(this._configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('connection.dialog.browse') && this.browsePanel) {
const doUseBrowsePanel = this._configurationService.getValue<boolean>('connection.dialog.browse');
if (e.affectsConfiguration('workbench.enablePreviewFeatures') && this.browsePanel) {
const doUseBrowsePanel = this._configurationService.getValue<boolean>('workbench.enablePreviewFeatures');
if (doUseBrowsePanel && !this._panel.contains(this.browsePanel)) {
this._panel.pushTab(this.browsePanel);
} else if (!doUseBrowsePanel && this._panel.contains(this.browsePanel)) {
@@ -281,7 +281,7 @@ export class ConnectionDialogWidget extends Modal {
}
});
if (this._configurationService.getValue<boolean>('connection.dialog.browse')) {
if (this._configurationService.getValue<boolean>('workbench.enablePreviewFeatures')) {
this._panel.pushTab(this.browsePanel);
}