How to tell what command caused activation?


I have two commands listed in my activationEvents array in package.json. I need to do different things at activation time depending on what triggered it.

How can I do this?


I’m not sure about the exact way, but it seems that the find-and-replace package does exactly that. The package.json defines a bunch of activation events that are then registered as command in the activate method of the package entry file.


Thanks. (I’m typing this to avoid the stupid min char limit here).

There should be a thanks button in this UI.

There should be a thanks button