docs: Document config completion for Deno (#38993)

Closes #ISSUE

Release Notes:

- doc: document config completion for deno
This commit is contained in:
Bedis Nbiba
2025-09-27 03:17:46 +01:00
committed by GitHub
parent 0fe696bc7c
commit e1e9f78dc3

View File

@@ -6,7 +6,7 @@ Deno support is available through the [Deno extension](https://github.com/zed-ex
## Deno Configuration
To use the Deno Language Server with TypeScript and TSX files, you will likely wish to disable the default language servers and enable deno by adding the following to your settings.json:
To use the Deno Language Server with TypeScript and TSX files, you will likely wish to disable the default language servers and enable deno by adding the following to your `settings.json`:
```json
{
@@ -57,6 +57,35 @@ See [Configuring supported languages](../configuring-languages.md) in the Zed do
TBD: Deno TypeScript REPL instructions [docs/repl#typescript-deno](../repl.md#typescript-deno)
-->
## Configuration completion
To get completions for `deno.json` or `package.json` you can add the following to your `settings.json`: (More info here https://zed.dev/docs/languages/json)
```json
"lsp": {
"json-language-server": {
"settings": {
"json": {
"schemas": [
{
"fileMatch": [
"deno.json"
],
"url": "https://raw.githubusercontent.com/denoland/deno/refs/heads/main/cli/schemas/config-file.v1.json"
},
{
"fileMatch": [
"package.json"
],
"url": "http://json.schemastore.org/package"
}
]
}
}
}
}
```
## DAP support
To debug deno programs, add this to `.zed/debug.json`