From 629a412c2e868518ae245d1588a6a02ce5de49a5 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Thu, 5 Sep 2024 16:23:33 -0400 Subject: [PATCH] Add basic Deno configuration docs (#17447) Co-authored-by: Marshall Bowers --- docs/src/languages/deno.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/src/languages/deno.md b/docs/src/languages/deno.md index 7993ce81d9..3b5e4a1ff9 100644 --- a/docs/src/languages/deno.md +++ b/docs/src/languages/deno.md @@ -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. +