I know how to create a new terminal from a VSCode extension using the vscode.window.createTerminal method. This method returns a reference to the terminal so that I can subsequently interact with it, for example, by sending strings to it etc.

I would really like to be able to interact with existing terminals in VSCode but cannot find any APIs to do this. Is it possible to enumerate all open integrated terminals in VSCode?