This commit is contained in:
2017-07-16 16:19:48 +02:00
parent 4584c44248
commit 6aeb0c1558
5 changed files with 108 additions and 37 deletions

View File

@ -95,7 +95,7 @@ export let execAndWaitForLineSilent = (commandStringArg: string, regexArg: RegEx
* get a path
*/
export let which = (cmd: string): Promise<string> => {
let done = plugins.smartq.defer()
let done = plugins.smartq.defer<string>()
plugins.which(cmd, (err, path: string) => {
if (err) {
done.reject(err)