mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
More formatting
This commit is contained in:
parent
4567067b08
commit
ebc27c4410
1 changed files with 12 additions and 14 deletions
|
@ -203,7 +203,7 @@ suite('window namespace tests', () => {
|
|||
|
||||
const term1Write = new EventEmitter<string>();
|
||||
const term1Close = new EventEmitter<void>();
|
||||
window.createTerminal({name: 'test1', pty: {
|
||||
window.createTerminal({ name: 'test1', pty: {
|
||||
onDidWrite: term1Write.event,
|
||||
onDidClose: term1Close.event,
|
||||
open: async () => {
|
||||
|
@ -215,21 +215,19 @@ suite('window namespace tests', () => {
|
|||
|
||||
const term2Write = new EventEmitter<string>();
|
||||
const term2Close = new EventEmitter<void>();
|
||||
window.createTerminal({
|
||||
name: 'test2', pty: {
|
||||
onDidWrite: term2Write.event,
|
||||
onDidClose: term2Close.event,
|
||||
open: async () => {
|
||||
term2Write.fire('write2');
|
||||
window.createTerminal({ name: 'test2', pty: {
|
||||
onDidWrite: term2Write.event,
|
||||
onDidClose: term2Close.event,
|
||||
open: async () => {
|
||||
term2Write.fire('write2');
|
||||
|
||||
// Wait until the data is written
|
||||
await new Promise<void>(resolve => { resolveOnceDataWritten = resolve; });
|
||||
// Wait until the data is written
|
||||
await new Promise<void>(resolve => { resolveOnceDataWritten = resolve; });
|
||||
|
||||
term2Close.fire();
|
||||
},
|
||||
close: () => { }
|
||||
}
|
||||
});
|
||||
term2Close.fire();
|
||||
},
|
||||
close: () => { }
|
||||
}});
|
||||
},
|
||||
close: () => { }
|
||||
}});
|
||||
|
|
Loading…
Reference in a new issue