docs: Document config completion for Deno (#38993)
Closes #ISSUE Release Notes: - doc: document config completion for deno
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user