Skip to content

Allow changing commands for inbuilt UI buttons for VSCode terminal #153439

Closed

Description

I am developing an extension where I am creating a custom VSCode Terminal from the extension, for the delete/kill terminal button (trashcan icon) that appears on every terminal, I want to execute my own function when that trashcan icon is clicked, is there a way to override existing command ? I can't use the onTerminalClose listener as it runs when vscode closes too, which I don't want. If this can't be done is there a way to provide additional UI buttons for a VSCode terminal ?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions