Add basic Deno configuration docs (#17447)

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Peter Tripp 2024-09-05 16:23:33 -04:00 committed by GitHub
parent 2238439427
commit 629a412c2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,8 +4,36 @@ Deno support is available through the [Deno extension](https://github.com/zed-in
- Language server: [Deno Language Server](https://docs.deno.com/runtime/manual/advanced/language_server/overview/)
## Deno Configuration
To use the Deno Language Server with TypeScript and TSX files, you will likely wish to to disable the default language servers and enable deno by adding the following to your settings.json:
```json
{
"languages": {
"TypeScript": {
"language_servers": [
"deno",
"!typescript-language-server",
"!vtsls",
"!eslint"
]
},
"TSX": {
"language_servers": [
"deno",
"!typescript-language-server",
"!vtsls",
"!eslint"
]
}
}
}
```
See [Configuring supported languages](../configuring-languages.md) in the Zed documentation for more information.
<!--
TBD: Document Deno configuration
TBD: Deno Typescript REPL instructions [docs/repl#typescript-deno](../repl.md#typescript-deno)
-->