@@ -28,16 +28,16 @@ switch (process.platform) {
28
28
process . arch === 'arm64'
29
29
? 'win32-arm64-archive'
30
30
: process . arch === 'ia32'
31
- ? 'win32-archive'
32
- : 'win32-x64-archive' ;
31
+ ? 'win32-archive'
32
+ : 'win32-x64-archive' ;
33
33
break ;
34
34
default :
35
35
systemDefaultPlatform =
36
36
process . arch === 'arm64' ? 'linux-arm64' : process . arch === 'arm' ? 'linux-armhf' : 'linux-x64' ;
37
37
}
38
38
39
39
export function isInsiderVersionIdentifier ( version : string ) : boolean {
40
- return version === 'insiders' || version . endsWith ( '-insider' ) ; // insider or 1.2.3-insider version string
40
+ return version === 'insiders' || version === 'insider' || version . endsWith ( '-insider' ) ; // insider or 1.2.3-insider version string
41
41
}
42
42
43
43
export function isStableVersionIdentifier ( version : string ) : boolean {
@@ -242,19 +242,16 @@ export function killTree(processId: number, force: boolean) {
242
242
243
243
// when killing a process in Windows its child processes are *not* killed but become root processes.
244
244
// Therefore we use TASKKILL.EXE
245
- cp = spawn ( path . join ( windir , 'System32' , 'taskkill.exe' ) , [
246
- ...force ? [ '/F' ] : [ ] ,
247
- '/T' ,
248
- '/PID' ,
249
- processId . toString ( ) ,
250
- ] , { stdio : 'inherit' } ) ;
245
+ cp = spawn (
246
+ path . join ( windir , 'System32' , 'taskkill.exe' ) ,
247
+ [ ...( force ? [ '/F' ] : [ ] ) , '/T' , '/PID' , processId . toString ( ) ] ,
248
+ { stdio : 'inherit' }
249
+ ) ;
251
250
} else {
252
251
// on linux and OS X we kill all direct and indirect child processes as well
253
- cp = spawn ( 'sh' , [
254
- path . resolve ( __dirname , '../killTree.sh' ) ,
255
- processId . toString ( ) ,
256
- force ? '9' : '15' ,
257
- ] , { stdio : 'inherit' } ) ;
252
+ cp = spawn ( 'sh' , [ path . resolve ( __dirname , '../killTree.sh' ) , processId . toString ( ) , force ? '9' : '15' ] , {
253
+ stdio : 'inherit' ,
254
+ } ) ;
258
255
}
259
256
260
257
return new Promise < void > ( ( resolve , reject ) => {
0 commit comments