mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -05:00
Filtering out some more high-frequency events (#6178)
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user