We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3831ee commit 5094cf0Copy full SHA for 5094cf0
1 file changed
extensions/vscode-api-tests/src/window.test.ts
@@ -280,4 +280,13 @@ suite('window namespace tests', () => {
280
// This should not throw an exception
281
terminal.sendText('echo "foo"');
282
});
283
+
284
+ test('onDidCloseTerminal, event fires when terminal is disposed', (done) => {
285
+ var terminal = window.createTerminal();
286
+ window.onDidCloseTerminal((eventTerminal) => {
287
+ assert.equal(terminal, eventTerminal);
288
+ done();
289
+ });
290
+ terminal.dispose();
291
292
0 commit comments