Not sure what's happening here, but content written to an emitter for a pseudo terminal doesn't seem to show up outside of the open function:
const emitter = new vs.EventEmitter<string>();
const pseudoterminal: vs.Pseudoterminal = {
close: () => { },
onDidWrite: emitter.event,
open: () => { emitter.fire("Hello world!\r\n"); },
};
const terminal = vs.window.createTerminal({ name: `Danny Test Terminal`, pty: pseudoterminal });
emitter.fire(`Test 1\r\n`);
terminal.show();
emitter.fire(`Test 2\r\n`);
setTimeout(() => emitter.fire(`Test 3\r\n`), 100);
I only see the first line in the terminal:

Not sure what's happening here, but content written to an emitter for a pseudo terminal doesn't seem to show up outside of the
openfunction:I only see the first line in the terminal: