mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Add a "Telemetry Opt-Out" menu item (#1172)
This commit is contained in:
@@ -1030,6 +1030,16 @@ export class CodeMenu {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}) : null,
|
}) : null,
|
||||||
|
product.telemetryOptOutUrl ? new MenuItem({
|
||||||
|
label: this.mnemonicLabel(nls.localize({ key: 'mTelemetryOptOut', comment: ['&& denotes a mnemonic'] }, "Telemetry &&Opt-Out")), click: () => {
|
||||||
|
if (language) {
|
||||||
|
const queryArgChar = product.telemetryOptOutUrl.indexOf('?') > 0 ? '&' : '?';
|
||||||
|
this.openUrl(`${product.telemetryOptOutUrl}${queryArgChar}lang=${language}`, 'openTelemetryOptOut');
|
||||||
|
} else {
|
||||||
|
this.openUrl(product.telemetryOptOutUrl, 'openTelemetryOptOut');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}) : null,
|
||||||
(product.licenseUrl || product.privacyStatementUrl) ? __separator__() : null,
|
(product.licenseUrl || product.privacyStatementUrl) ? __separator__() : null,
|
||||||
toggleDevToolsItem,
|
toggleDevToolsItem,
|
||||||
isWindows && product.quality !== 'stable' ? showAccessibilityOptions : null
|
isWindows && product.quality !== 'stable' ? showAccessibilityOptions : null
|
||||||
|
|||||||
Reference in New Issue
Block a user