@@ -22,7 +22,7 @@ import { doesNotThrow, equal, ok, deepEqual, throws } from 'assert';
2222 await config . update ( 'windowsEnableConpty' , false , ConfigurationTarget . Global ) ;
2323 // Disable exit alerts as tests may trigger then and we're not testing the notifications
2424 await config . update ( 'showExitAlert' , false , ConfigurationTarget . Global ) ;
25- // Canvas can cause problems when running in a container
25+ // Canvas may cause problems when running in a container
2626 await config . update ( 'rendererType' , 'dom' , ConfigurationTarget . Global ) ;
2727 } ) ;
2828
@@ -50,63 +50,47 @@ import { doesNotThrow, equal, ok, deepEqual, throws } from 'assert';
5050 } ) ;
5151
5252 test ( 'echo works in the default shell' , ( done ) => {
53- console . log ( 1 ) ;
5453 disposables . push ( window . onDidOpenTerminal ( term => {
55- console . log ( 2 ) ;
5654 try {
5755 equal ( terminal , term ) ;
5856 } catch ( e ) {
5957 done ( e ) ;
6058 return ;
6159 }
62- console . log ( 3 ) ;
6360 let data = '' ;
6461 const dataDisposable = window . onDidWriteTerminalData ( e => {
65- console . log ( 4 ) ;
6662 try {
6763 equal ( terminal , e . terminal ) ;
6864 } catch ( e ) {
6965 done ( e ) ;
7066 return ;
7167 }
72- console . log ( 5 ) ;
7368 data += e . data ;
74- console . log ( 6 ) ;
7569 if ( data . indexOf ( expected ) !== 0 ) {
76- console . log ( 7 ) ;
7770 dataDisposable . dispose ( ) ;
78- console . log ( 8 ) ;
7971 terminal . dispose ( ) ;
80- console . log ( 9 ) ;
8172 disposables . push ( window . onDidCloseTerminal ( ( ) => {
82- console . log ( 10 ) ;
8373 done ( ) ;
8474 } ) ) ;
85- console . log ( 11 ) ;
8675 }
8776 } ) ;
8877 disposables . push ( dataDisposable ) ;
8978 } ) ) ;
90- console . log ( 12 ) ;
9179 // Use a single character to avoid winpty/conpty issues with injected sequences
9280 const expected = '`' ;
9381 const terminal = window . createTerminal ( {
9482 env : {
9583 TEST : '`'
9684 }
9785 } ) ;
98- console . log ( 13 ) ;
9986 terminal . show ( ) ;
100- console . log ( 14 ) ;
10187 doesNotThrow ( ( ) => {
102- console . log ( 15 ) ;
10388 // Print an environment variable value so the echo statement doesn't get matched
10489 if ( process . platform === 'win32' ) {
10590 terminal . sendText ( `$env:TEST` ) ;
10691 } else {
10792 terminal . sendText ( `echo $TEST` ) ;
10893 }
109- console . log ( 16 ) ;
11094 } ) ;
11195 } ) ;
11296
0 commit comments