From b35a0eea42b5d5b42cef8bf2244e19c5b5d3a735 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 25 Jul 2019 11:26:55 +0200 Subject: [PATCH] filter commands that start with an underscore, #1431 --- src/vs/workbench/api/common/extHostCommands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/common/extHostCommands.ts b/src/vs/workbench/api/common/extHostCommands.ts index f2456398c95c3..4cef83323b08c 100644 --- a/src/vs/workbench/api/common/extHostCommands.ts +++ b/src/vs/workbench/api/common/extHostCommands.ts @@ -50,7 +50,7 @@ export class ExtHostCommands implements ExtHostCommandsShape { onFirstListenerDidAdd: () => this._proxy.$registerCommandListener(), onLastListenerRemove: () => this._proxy.$unregisterCommandListener(), }); - this.onDidExecuteCommand = this._onDidExecuteCommand.event; + this.onDidExecuteCommand = Event.filter(this._onDidExecuteCommand.event, e => e.command[0] !== '_'); // filter 'private' commands this._logService = logService; this._converter = new CommandsConverter(this); this._argumentProcessors = [