Fixes #370. Allow Promises in allOptions for beautification

This commit is contained in:
Glavin Wiechert 2015-05-27 18:05:30 -03:00
parent e5aea290c6
commit 28d2068bcd
1 changed files with 182 additions and 176 deletions

View File

@ -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 : {}