fix(formatting): check for enabled formatters (#611)
parent
c810b6d206
commit
8f4b79227c
|
|
@ -31,7 +31,7 @@ export namespace Format {
|
|||
const result = []
|
||||
for (const item of Object.values(Formatter)) {
|
||||
if (!item.extensions.includes(ext)) continue
|
||||
if (!isEnabled(item)) continue
|
||||
if (!(await isEnabled(item))) continue
|
||||
result.push(item)
|
||||
}
|
||||
return result
|
||||
|
|
|
|||
Loading…
Reference in New Issue