Bail out of create process if it's been disposed

This is likely the cause of several terminal test issues we've been seeing,
especially on remote. When process creation becomes async, the process
seems to hang around if the terminal was disposed during the process
creation.

Another thing to consider if env var relaunches messing with tests.
This commit is contained in:
Daniel Imms
2021-03-05 17:47:39 -08:00
parent 258ee03bfb
commit 755fae50ab
4 changed files with 22 additions and 4 deletions

View File

@@ -103,6 +103,11 @@ import { assertNoRpc } from '../utils';
}));
terminal.dispose();
});
// Wait for end of task process
// await new Promise<void>(r => {
// disposables.push(tasks.onDidEndTaskProcess(() => r));
// });
});
test('sync CustomExecution task should flush all data on close', async () => {