@@ -19,10 +19,6 @@ async function main() {
19
19
// Use cp.spawn / cp.exec for custom setup
20
20
const isWin = process . platform === 'win32' ;
21
21
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 ) ) ;
26
22
try {
27
23
const installResult = cp . spawnSync (
28
24
cliPath ,
@@ -34,26 +30,18 @@ async function main() {
34
30
shell : true ,
35
31
} ,
36
32
) ;
37
- console . log ( '[DEBUG] installResult:' , installResult ) ;
38
33
if ( installResult . error ) {
39
34
console . error ( 'Extension installation error:' , installResult . error ) ;
40
35
}
41
36
if ( installResult . status !== 0 ) {
42
37
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.' ) ;
49
40
}
50
41
} catch ( ex ) {
51
42
console . error ( 'Exception during extension installation:' , ex ) ;
52
43
}
53
44
} else {
54
- console . log ( '[DEBUG] Non-Windows detected' ) ;
55
- console . log ( '[DEBUG] cliPath:' , cliPath ) ;
56
- console . log ( '[DEBUG] args:' , args ) ;
57
45
const installResult = cp . spawnSync (
58
46
cliPath ,
59
47
[ ...args , '--install-extension' , PVSC_EXTENSION_ID_FOR_TESTS , PVSC_ENVS_EXTENSION_ID_FOR_TESTS ] ,
@@ -62,18 +50,13 @@ async function main() {
62
50
stdio : 'inherit' ,
63
51
} ,
64
52
) ;
65
- console . log ( '[DEBUG] installResult:' , installResult ) ;
66
53
if ( installResult . error ) {
67
54
console . error ( 'Extension installation error:' , installResult . error ) ;
68
55
}
69
56
if ( installResult . status !== 0 ) {
70
57
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.' ) ;
77
60
}
78
61
}
79
62
console . log ( 'Extensions installed, ready to run tests.' ) ;
0 commit comments