Skip to content

Commit

Permalink
filter commands that start with an underscore, #1431
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jul 25, 2019
1 parent 5dfd889 commit b35a0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/common/extHostCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit b35a0ee

Please sign in to comment.