Filtering out some more high-frequency events (#6178)

This commit is contained in:
Charles Gagnon
2019-06-26 23:03:22 +00:00
committed by GitHub
parent b0b1b59147
commit 5a11cf1a6f

View File

@@ -24,7 +24,7 @@ export class SqlTelemetryContribution extends Disposable implements IWorkbenchCo
commandService.onWillExecuteCommand(
(e: ICommandEvent) => {
// Filter out high-frequency events
if (!['type'].find(id => id === e.commandId)) {
if (!['type', 'cursorUp', 'cursorDown', 'cursorRight', 'cursorLeft', 'deleteLeft', 'deleteRight'].find(id => id === e.commandId)) {
telemetryService.publicLog('adsCommandExecuted', { id: e.commandId });
}
}));