mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
Add more tracing for commands with multiple implementations
This commit is contained in:
@@ -181,6 +181,7 @@ export class MultiCommand extends Command {
|
||||
|
||||
public runCommand(accessor: ServicesAccessor, args: any): void | Promise<void> {
|
||||
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.`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user