提交 a219b4b6 编写于 作者: K kieferrm

remove disableOtherKeymapsConfirmation event

上级 ca7e2869
......@@ -65,25 +65,8 @@ export class KeymapExtensions implements IWorkbenchContribution {
}
private promptForDisablingOtherKeymaps(newKeymap: IExtensionStatus, oldKeymaps: IExtensionStatus[]): TPromise<void> {
/* __GDPR__FRAGMENT__
"KeyMapsData" : {
"newKeymap" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"oldKeymaps": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
const telemetryData: { [key: string]: any; } = {
newKeymap: newKeymap.identifier,
oldKeymaps: oldKeymaps.map(k => k.identifier)
};
/* __GDPR__
"disableOtherKeymapsConfirmation" : {
"${include}": [
"${KeyMapsData}"
]
}
*/
this.telemetryService.publicLog('disableOtherKeymapsConfirmation', telemetryData);
const message = localize('disableOtherKeymapsConfirmation', "Disable other keymaps ({0}) to avoid conflicts between keybindings?", oldKeymaps.map(k => `'${k.local.manifest.displayName}'`).join(', '));
const options = [
localize('yes', "Yes"),
......@@ -92,13 +75,16 @@ export class KeymapExtensions implements IWorkbenchContribution {
return this.choiceService.choose(Severity.Info, message, options, 1, false)
.then(value => {
const confirmed = value === 0;
telemetryData['confirmed'] = confirmed;
const telemetryData: { [key: string]: any; } = {
newKeymap: newKeymap.identifier,
oldKeymaps: oldKeymaps.map(k => k.identifier),
confirmed
};
/* __GDPR__
"disableOtherKeymaps" : {
"confirmed" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"${include}": [
"${KeyMapsData}"
]
"newKeymap" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"oldKeymaps": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"confirmed" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this.telemetryService.publicLog('disableOtherKeymaps', telemetryData);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册