onDidChangeName property

Event<String>? get onDidChangeName

An event that when fired allows changing the name of the terminal.

Events fired before {@link Pseudoterminal.open} is called will be be ignored.

Example: Change the terminal name to "My new terminal".

const writeEmitter = new vscode.EventEmitter<string>();
const changeNameEmitter = new vscode.EventEmitter<string>();
const pty: vscode.Pseudoterminal = {
  onDidWrite: writeEmitter.event,
  onDidChangeName: changeNameEmitter.event,
  open: () => changeNameEmitter.fire('My new terminal'),
  close: () => {}
};
vscode.window.createTerminal({ name: 'My terminal', pty });

Implementation

_i3.Event<_i2.String>? get onDidChangeName => _i5.getProperty(
      this,
      'onDidChangeName',
    );
set onDidChangeName (Event<String>? value)

Implementation

set onDidChangeName(_i3.Event<_i2.String>? value) {
  _i5.setProperty(
    this,
    'onDidChangeName',
    value ?? _i6.undefined,
  );
}