feat: add top level lsp: false and formatter: false to allow disabling all formatters or lsps at once

This commit is contained in:
Aiden Cline
2025-11-18 17:44:34 -06:00
parent 429708e3d5
commit 81ebf56cf1
4 changed files with 78 additions and 48 deletions

View File

@@ -28,6 +28,14 @@ export namespace Format {
const cfg = await Config.get()
const formatters: Record<string, Formatter.Info> = {}
if (cfg.formatter === false) {
log.info("all formatters are disabled")
return {
enabled,
formatters,
}
}
for (const item of Object.values(Formatter)) {
formatters[item.name] = item
}