Alanren/welcomepage (#6537)

* remove dependency on product.quality

* remove extra line

* comments
This commit is contained in:
Alan Ren
2019-07-30 14:55:32 -07:00
committed by GitHub
parent c1acf6ae93
commit f68ed67e3a
2 changed files with 12 additions and 4 deletions

View File

@@ -5,15 +5,20 @@
import { escape } from 'vs/base/common/strings';
import { localize } from 'vs/nls';
import product from 'vs/platform/product/node/product';
export function used() {
}
let productQuality: string;
export function setProductQuality(quality: string): void {
productQuality = quality;
}
function showDeploySection(): boolean {
// only show the deploy section for insider build and dev environment for now until the feature is stable
// tracking issue: https://github.com/microsoft/azuredatastudio/issues/5987
return product.quality !== 'stable';
return productQuality !== 'stable';
}