Fixes #370. Allow Promises in allOptions for beautification
This commit is contained in:
parent
e5aea290c6
commit
28d2068bcd
|
@ -288,6 +288,8 @@ module.exports = class Beautifiers
|
|||
|
||||
|
||||
beautify : (text, allOptions, grammar, filePath, {onSave} = {}) ->
|
||||
return Promise.all(allOptions)
|
||||
.then((allOptions) =>
|
||||
return new Promise((resolve, reject) =>
|
||||
logger.info('beautify', text, allOptions, grammar, filePath)
|
||||
logger.verbose(allOptions)
|
||||
|
@ -477,6 +479,10 @@ module.exports = class Beautifiers
|
|||
})
|
||||
return resolve( null )
|
||||
)
|
||||
|
||||
)
|
||||
|
||||
|
||||
findFileResults : {}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue