(item: Formatter.Info)
| 50 | } |
| 51 | |
| 52 | async function isEnabled(item: Formatter.Info) { |
| 53 | const cmd = await getCommand(item) |
| 54 | return cmd !== false |
| 55 | } |
| 56 | |
| 57 | async function getFormatter(ext: string) { |
| 58 | const matching = Object.values(formatters).filter((item) => item.extensions.includes(ext)) |