Ensure data events are flushed before execution end fires

Fixes #241592
This commit is contained in:
Daniel Imms
2025-02-24 07:30:40 -08:00
parent 3d148bd50b
commit 87dc506eca
2 changed files with 24 additions and 5 deletions

View File

@@ -142,7 +142,7 @@ import { assertNoRpc } from '../utils';
await closeTerminalAsync(terminal);
});
test.skip('TerminalShellExecution.read iterables should be available between the start and end execution events', async () => {
test('TerminalShellExecution.read iterables should be available between the start and end execution events', async () => {
const { terminal, shellIntegration } = await createTerminalAndWaitForShellIntegration();
const events: string[] = [];
disposables.push(window.onDidStartTerminalShellExecution(() => events.push('start')));
@@ -164,7 +164,7 @@ import { assertNoRpc } from '../utils';
await closeTerminalAsync(terminal);
});
test.skip('TerminalShellExecution.read events should fire with contents of command', async () => {
test('TerminalShellExecution.read events should fire with contents of command', async () => {
const { terminal, shellIntegration } = await createTerminalAndWaitForShellIntegration();
const events: string[] = [];
@@ -179,7 +179,7 @@ import { assertNoRpc } from '../utils';
await closeTerminalAsync(terminal);
});
test.skip('TerminalShellExecution.read events should give separate iterables per call', async () => {
test('TerminalShellExecution.read events should give separate iterables per call', async () => {
const { terminal, shellIntegration } = await createTerminalAndWaitForShellIntegration();
const { execution, endEvent } = executeCommandAsync(shellIntegration, 'echo hello');