Extension API request: vscode.Terminal.onBufferChange
#206832
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
vscode.Terminal.onBufferChange
#206832
Hello, I'd like to request a new extension API:
vscode.Terminal.onBufferChange: vscode.Event<'normal' | 'alternate'>
This would expose the existing Xterm.js event
Terminal.buffer.onBufferChange: IEvent<IBuffer>
.The event parameter
'normal' | 'alternate'
would come from thetype
property of theIBuffer
passed to the Xterm.js event callback.I'd like to use such an API to implement a small extension that maximizes the VS Code integrated terminal when it switches to the alternate buffer and restores it when it switches back to the normal one (by invoking the
workbench.action.toggleMaximizedPanel
command). I previously discussed this idea at microsoft/vscode-discussions#322.Thanks!
The text was updated successfully, but these errors were encountered: