1
1
import * as path from "path"
2
2
import * as cp from "child_process"
3
3
import * as vscode from "vscode"
4
- import * as nodeWhich from ' which'
4
+ import * as nodeWhich from " which"
5
5
6
6
export const mediaDir = path . join ( __filename , ".." , ".." , "media" )
7
7
@@ -11,9 +11,9 @@ export const exec = async (command: string): Promise<string> => {
11
11
} )
12
12
}
13
13
14
- export const execCombined = async ( command : string ) : Promise < { stderr : string , stdout : string } > => {
14
+ export const execCombined = async ( command : string ) : Promise < { stderr : string ; stdout : string } > => {
15
15
return new Promise ( ( res , rej ) => {
16
- cp . exec ( command , ( err , stdout , stderr ) => ( err ? rej ( err ) : res ( { stderr, stdout} ) ) )
16
+ cp . exec ( command , ( err , stdout , stderr ) => ( err ? rej ( err ) : res ( { stderr, stdout } ) ) )
17
17
} )
18
18
}
19
19
@@ -24,7 +24,9 @@ export const execJSON = async <T>(command: string): Promise<T> => {
24
24
25
25
// binaryExists returns "true" if the binary is found in $PATH
26
26
export const binaryExists = async ( bin : string ) : Promise < boolean > => {
27
- return new Promise ( ( res ) => { nodeWhich ( bin , err => res ( ! err ) ) } )
27
+ return new Promise ( ( res ) => {
28
+ nodeWhich ( bin , ( err ) => res ( ! err ) )
29
+ } )
28
30
}
29
31
30
32
export const bubbleError = ( f : ( ) => void ) => {
0 commit comments