From 6971f1dc3d4c5bd866b71d5aaa6eb3addb4ccff3 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 20 Aug 2021 16:07:43 +0200 Subject: [PATCH] Add more tracing for commands with multiple implementations --- src/vs/editor/browser/editorExtensions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/editor/browser/editorExtensions.ts b/src/vs/editor/browser/editorExtensions.ts index 9cf6d8db06e..b9397768f5e 100644 --- a/src/vs/editor/browser/editorExtensions.ts +++ b/src/vs/editor/browser/editorExtensions.ts @@ -181,6 +181,7 @@ export class MultiCommand extends Command { public runCommand(accessor: ServicesAccessor, args: any): void | Promise { const logService = accessor.get(ILogService); + logService.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`); for (const impl of this._implementations) { const result = impl.implementation(accessor, args); if (result) { @@ -191,6 +192,7 @@ export class MultiCommand extends Command { return result; } } + logService.trace(`The Command '${this.id}' was not handled by any implementation.`); } }