List terminals in extension APIs

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

I would really like to be able to interact with existing terminals in VSCode, but I can not find any APIs for this. Is it possible to list all open integrated terminals in VSCode?

+5
source share

Source: https://habr.com/ru/post/1274579/


All Articles