Skip to content

How to determine if a Terminal created using new API has been closed by the user? #10925

@DonJayamanne

Description

@DonJayamanne
  • VSCode Version: Insider Build

I'm using the code sample put together by @Tyriar

Steps to Reproduce:

  1. Run the above sample
  2. Create a terminal using the new API
  3. Send text to this new terminal
  4. Close the new terminal using the icon on the top right of the terminal panel
    (NOTE: Terminal has now been disposed, but extension is not aware of this)
  5. Next try to send text to previously created terminal (that no longer exists)
    A new terminal window is opened.

Is it possible for the extension to be notified of the fact that the terminal has been closed?
Either via:

  • A callback (method or event)
  • Or extension needs to be able to query this

Metadata

Metadata

Assignees

Labels

apifeature-requestRequest for new features or functionalityterminalGeneral terminal issues that don't fall under another label

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions