mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 17:23:29 -05:00
Add a "Telemetry Opt-Out" menu item (#1172)
This commit is contained in:
@@ -1030,6 +1030,16 @@ export class CodeMenu {
|
||||
}
|
||||
}
|
||||
}) : 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,
|
||||
toggleDevToolsItem,
|
||||
isWindows && product.quality !== 'stable' ? showAccessibilityOptions : null
|
||||
|
||||
Reference in New Issue
Block a user