mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
Fix polling error compile
This commit is contained in:
parent
29ddbd371e
commit
3794d74d3c
|
@ -44,9 +44,10 @@ export function setup() {
|
||||||
// not edge case race conditions on terminal start up
|
// not edge case race conditions on terminal start up
|
||||||
async function pollForCommandAndOutput(command: string, exitCode: number): Promise<void> {
|
async function pollForCommandAndOutput(command: string, exitCode: number): Promise<void> {
|
||||||
const data = generateCommandAndOutput(command, exitCode);
|
const data = generateCommandAndOutput(command, exitCode);
|
||||||
|
let element;
|
||||||
for (let i = 0; i < 10; i++) {
|
for (let i = 0; i < 10; i++) {
|
||||||
await terminal.runCommandWithValue(TerminalCommandIdWithValue.WriteDataToTerminal, data);
|
await terminal.runCommandWithValue(TerminalCommandIdWithValue.WriteDataToTerminal, data);
|
||||||
const element = await app.code.getElement('.terminal-sticky-scroll .xterm-rows');
|
element = await app.code.getElement('.terminal-sticky-scroll .xterm-rows');
|
||||||
if (element && element.textContent.indexOf(`Prompt> ${command}`) >= 0) {
|
if (element && element.textContent.indexOf(`Prompt> ${command}`) >= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue