@@ -19,10 +19,6 @@ async function main() {
1919 // Use cp.spawn / cp.exec for custom setup
2020 const isWin = process . platform === 'win32' ;
2121 if ( isWin ) {
22- console . log ( '[DEBUG] Windows detected' ) ;
23- console . log ( '[DEBUG] cliPath:' , cliPath ) ;
24- console . log ( '[DEBUG] args:' , args ) ;
25- console . log ( '[DEBUG] cwd:' , path . dirname ( cliPath ) ) ;
2622 try {
2723 const installResult = cp . spawnSync (
2824 cliPath ,
@@ -34,26 +30,18 @@ async function main() {
3430 shell : true ,
3531 } ,
3632 ) ;
37- console . log ( '[DEBUG] installResult:' , installResult ) ;
3833 if ( installResult . error ) {
3934 console . error ( 'Extension installation error:' , installResult . error ) ;
4035 }
4136 if ( installResult . status !== 0 ) {
4237 console . error ( `Extension installation failed with exit code: ${ installResult . status } ` ) ;
43- if ( installResult . stderr ) {
44- console . error ( '[DEBUG] stderr:' , installResult . stderr . toString ( ) ) ;
45- }
46- if ( installResult . stdout ) {
47- console . error ( '[DEBUG] stdout:' , installResult . stdout . toString ( ) ) ;
48- }
38+ } else {
39+ console . log ( 'Extension installation succeeded.' ) ;
4940 }
5041 } catch ( ex ) {
5142 console . error ( 'Exception during extension installation:' , ex ) ;
5243 }
5344 } else {
54- console . log ( '[DEBUG] Non-Windows detected' ) ;
55- console . log ( '[DEBUG] cliPath:' , cliPath ) ;
56- console . log ( '[DEBUG] args:' , args ) ;
5745 const installResult = cp . spawnSync (
5846 cliPath ,
5947 [ ...args , '--install-extension' , PVSC_EXTENSION_ID_FOR_TESTS , PVSC_ENVS_EXTENSION_ID_FOR_TESTS ] ,
@@ -62,18 +50,13 @@ async function main() {
6250 stdio : 'inherit' ,
6351 } ,
6452 ) ;
65- console . log ( '[DEBUG] installResult:' , installResult ) ;
6653 if ( installResult . error ) {
6754 console . error ( 'Extension installation error:' , installResult . error ) ;
6855 }
6956 if ( installResult . status !== 0 ) {
7057 console . error ( `Extension installation failed with exit code: ${ installResult . status } ` ) ;
71- if ( installResult . stderr ) {
72- console . error ( '[DEBUG] stderr:' , installResult . stderr . toString ( ) ) ;
73- }
74- if ( installResult . stdout ) {
75- console . error ( '[DEBUG] stdout:' , installResult . stdout . toString ( ) ) ;
76- }
58+ } else {
59+ console . log ( 'Extension installation succeeded.' ) ;
7760 }
7861 }
7962 console . log ( 'Extensions installed, ready to run tests.' ) ;
0 commit comments