diff --git a/docs/src/languages/deno.md b/docs/src/languages/deno.md index 12d36b9ef851d4a21a46601ba8aa46edcc6de7d5..c90450831bf01e43a8f1476ca0d6d0148be3a10d 100644 --- a/docs/src/languages/deno.md +++ b/docs/src/languages/deno.md @@ -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`