<p dir="auto">Similar to <a href="https://atom.io/docs/api/v1.3.2/CommandRegistry" rel="nofollow"><code class="notranslate">atom.commands.onWillDispatch</code> and <code class="notranslate">atom.commands.onDidDispatch</code></a>. This would be useful for extensions wanting to perform some action before or after a command is performed.</p>
<p dir="auto">Being able to determine the source of the event would be useful in such an API (mouse vs keyboard vs command palette).</p>
<p dir="auto">I am building an extension for VS Code. My extension will show the key bindings associated to a recently action (I am a fan of this for helping me learn key bindings).</p>
<p dir="auto">Looking through the documentation there seems to be a way to access the commands in the editor, but no way that I can find to listen for actions / commands as they are invoked.</p>
<p dir="auto">I would like the ability to listen for all user actions and then react to their actions.</p>