Working with tabs (open files)

Hi, I’d like to request an API to work with tabs (open files) in the editor.

I’d like a way to check the number of open tabs, check the status of a tab, close tabs, sort tabs, check which tab has focus, and which panes there are, etc.

I’d like to make an extension that automatically closes older tabs, and that prevents new tabs from opening in the pane that contains the Terminal.


I will mark this as a feature request!