(item: Formatter.Info)
| 64 | }) |
| 65 | |
| 66 | async function isEnabled(item: Formatter.Info) { |
| 67 | const s = await state() |
| 68 | let status = s.enabled[item.name] |
| 69 | if (status === undefined) { |
| 70 | status = await item.enabled() |
| 71 | s.enabled[item.name] = status |
| 72 | } |
| 73 | return status |
| 74 | } |
| 75 | |
| 76 | async function getFormatter(ext: string) { |
| 77 | const formatters = await state().then((x) => x.formatters) |
no test coverage detected