Should use onDidChangeTerminalShellIntegration. From the notes in: https://github.com/microsoft/vscode-python-environments/compare/tyriar/notes?expand=1