353
354
} else {
356
this._leaveChordMode();
357
}
359
>
if (!resolveResult.isBubble) {
360
shouldPreventDefault = true;
361
}
363
>
this._log(`+ Invoking command ${resolveResult.commandId}.`);
364
>
this._currentlyDispatchingCommandId = resolveResult.commandId;
365
>
try {
366
>
if (typeof resolveResult.commandArgs === 'undefined') {
367
this._commandService.executeCommand(resolveResult.commandId).then(undefined, err => this._notificationService.warn(err));
369
>
this._commandService.executeCommand(resolveResult.commandId, resolveResult.commandArgs).then(undefined, err => this._notificationService.warn(err));
370
>
}
371
>
} finally {
372
>
this._currentlyDispatchingCommandId = null;
373
>
}
374
>
375
>
if (!HIGH_FREQ_COMMANDS.test(resolveResult.commandId)) {
376
>
this._telemetryService.publicLog2<WorkbenchActionExecutedEvent, WorkbenchActionExecutedClassification>('workbenchActionExecuted', { id: resolveResult.commandId, from: 'keybinding', detail: userKeypress.getUserSettingsLabel() ?? undefined });
377
>
}
378
>
}
379
380
return shouldPreventDefault;