summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-05-03 00:10:53 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-05-03 00:10:53 +0000
commitd10fb88b66181ab710b768a23317c0b972bcd9c5 (patch)
treeb3be8f4dff64fb6c72efbfd0f4a8352c622a3cc2
parent6b68b1020e3efbeb7d09b3318495593b66f1c745 (diff)
downloadopencode-d10fb88b66181ab710b768a23317c0b972bcd9c5.tar.gz
opencode-d10fb88b66181ab710b768a23317c0b972bcd9c5.zip
chore: generate
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts6
-rw-r--r--packages/sdk/openapi.json2
-rw-r--r--packages/web/src/content/docs/formatters.mdx10
3 files changed, 13 insertions, 5 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index e60ea7694..af29de17f 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -1592,6 +1592,9 @@ export type Config = {
enabled: boolean
}
}
+ /**
+ * Enable or configure formatters. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides.
+ */
formatter?:
| boolean
| {
@@ -1604,6 +1607,9 @@ export type Config = {
extensions?: Array<string>
}
}
+ /**
+ * Enable or configure LSP servers. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides.
+ */
lsp?:
| boolean
| {
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 0e9c11ca6..680771e18 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -11928,6 +11928,7 @@
}
},
"formatter": {
+ "description": "Enable or configure formatters. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides.",
"anyOf": [
{
"type": "boolean"
@@ -11970,6 +11971,7 @@
]
},
"lsp": {
+ "description": "Enable or configure LSP servers. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides.",
"anyOf": [
{
"type": "boolean"
diff --git a/packages/web/src/content/docs/formatters.mdx b/packages/web/src/content/docs/formatters.mdx
index ec7a965d2..58b63fa34 100644
--- a/packages/web/src/content/docs/formatters.mdx
+++ b/packages/web/src/content/docs/formatters.mdx
@@ -80,12 +80,12 @@ Use an object to keep built-ins enabled while configuring overrides or custom fo
Each formatter configuration supports the following:
-| Property | Type | Description |
-| ------------- | -------- | ------------------------------------------------------- |
-| `disabled` | boolean | Set this to `true` to disable the formatter |
+| Property | Type | Description |
+| ------------- | -------- | ------------------------------------------------------------------------------------------ |
+| `disabled` | boolean | Set this to `true` to disable the formatter |
| `command` | string[] | The command to run for formatting. Required for custom formatters; optional for built-ins. |
-| `environment` | object | Environment variables to set when running the formatter |
-| `extensions` | string[] | File extensions this formatter should handle |
+| `environment` | object | Environment variables to set when running the formatter |
+| `extensions` | string[] | File extensions this formatter should handle |
Let's look at some examples.