mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
* 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:
@@ -41,7 +41,9 @@ export abstract class AbstractTelemetryOptOut implements IWorkbenchContribution
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected async handleTelemetryOptOut(): Promise<void> {
|
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 experimentId = 'telemetryOptOut';
|
||||||
|
|
||||||
const [count, experimentState] = await Promise.all([this.getWindowCount(), this.experimentService.getExperimentById(experimentId)]);
|
const [count, experimentState] = await Promise.all([this.getWindowCount(), this.experimentService.getExperimentById(experimentId)]);
|
||||||
|
|||||||
Reference in New Issue
Block a user