From 1e163ee578e5b4c81e3e0cff3ac1a7a92c4f719e Mon Sep 17 00:00:00 2001 From: Vladyslav Zhukovskyi Date: Tue, 26 Nov 2019 12:10:39 +0200 Subject: [PATCH] Use argument processor for the commands called from plugins Signed-off-by: Vladyslav Zhukovskyi --- packages/plugin-ext/src/plugin/command-registry.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugin-ext/src/plugin/command-registry.ts b/packages/plugin-ext/src/plugin/command-registry.ts index 307dbc55ffe8d..b56f9db7776fe 100644 --- a/packages/plugin-ext/src/plugin/command-registry.ts +++ b/packages/plugin-ext/src/plugin/command-registry.ts @@ -100,6 +100,7 @@ export class CommandRegistryImpl implements CommandRegistryExt { // tslint:disable:no-any executeCommand(id: string, ...args: any[]): PromiseLike { + args = args.map(arg => this.argumentProcessors.reduce((r, p) => p.processArgument(r), arg)); if (this.handlers.has(id)) { return this.executeLocalCommand(id, ...args); } else if (KnownCommands.mapped(id)) {