onDidStartTerminalShellExecution

This will be fired when a terminal command is started. This event will fire only when shell integration is activated for the terminal.

Online Documentation