Fixing query editor smoke test (#18515) (#18530)

* Fixing query editor smoke test

* Fixing notification toast for telemetry opt out

* Adding SQL Carbon edit

(cherry picked from commit 5731366a1c)

Co-authored-by: Aasim Khan <aasimkhan30@gmail.com>
This commit is contained in:
Charles Gagnon
2022-02-22 16:03:48 -08:00
committed by GitHub
parent 734de6251d
commit b0d3c95bec

View File

@@ -41,7 +41,9 @@ export abstract class AbstractTelemetryOptOut implements IWorkbenchContribution
}
protected async handleTelemetryOptOut(): Promise<void> {
if (this.productService.telemetryOptOutUrl && !this.storageService.get(AbstractTelemetryOptOut.TELEMETRY_OPT_OUT_SHOWN, StorageScope.GLOBAL)) {
if (this.productService.telemetryOptOutUrl &&
!this.storageService.get(AbstractTelemetryOptOut.TELEMETRY_OPT_OUT_SHOWN, StorageScope.GLOBAL) &&
!this.environmentService.disableTelemetry) { // {{SQL CARBON EDIT}} Adding check to disable opt out toast when this flag is set.
const experimentId = 'telemetryOptOut';
const [count, experimentState] = await Promise.all([this.getWindowCount(), this.experimentService.getExperimentById(experimentId)]);