mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
Remove timeout from automation terminal util
I don't believe this was ever required, awaiting writeInTerminal should make sure the data event is triggered in xterm, the following enter should just trigger another data event. This doesn't guarantee it was accepted by the process yet, just that xterm.js emitted the event. Part of #137847
This commit is contained in:
parent
d838a004ff
commit
e208c8604e
|
@ -80,8 +80,6 @@ export class Terminal {
|
|||
|
||||
async runCommandInTerminal(commandText: string): Promise<void> {
|
||||
await this.code.writeInTerminal(Selector.Xterm, commandText);
|
||||
// hold your horses
|
||||
await new Promise(c => setTimeout(c, 500));
|
||||
await this.code.dispatchKeybinding('enter');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user