Configure this Zed project to use Deno
Here's a piece of how editors actually work, because it explains everything you're about to do: Zed doesn't understand your code by itself. It consults a language server, a background program that reads what you type and supplies the feedback, formatting, and suggestions you see. Zed ships with a general-purpose TypeScript language server, and it's fine. But this project runs its TypeScript through Deno, and Deno brings its own language server that understands Deno's way of doing things. Two experts disagreeing over your code is worse than one; this step hires the right one and politely dismisses the rest.
Install the Deno extension
- Open Zed's Extension Gallery:
- macOS: Command-Shift-X
- Windows/Linux: Control-Shift-X
- Alternative: Zed menu → Extensions
- Search for
Denoand select the Deno extension. - Choose Install and wait for confirmation.
Create the project settings
- In the Project Panel, right-click the
examplesfolder and choose New Folder. - Name it
.zed(the dot is part of the name). - Right-click
.zed, choose New File, and name itsettings.json.
The resulting path is .zed/settings.json. Insert this complete configuration:
{
"lsp": {
"deno": {
"settings": {
"deno": {
"enable": true
}
}
}
},
"languages": {
"TypeScript": {
"language_servers": [
"deno",
"!typescript-language-server",
"!vtsls",
"!eslint"
],
"formatter": "language_server"
}
}
}
Save the file.
Read it as: in this project, enable Deno, use it to understand TypeScript files, and use it to format them. The !-prefixed entries are the polite dismissals: they disable the other TypeScript language servers for this project so only one expert is talking. And because this lives in .zed/settings.json inside the project, it applies here only; any other project on your machine is untouched.
Trust and restart
- Zed may display a trust prompt, since project settings can launch tools.
- Choose Trust; you wrote these settings yourself, ten seconds ago.
- Close all Zed windows completely.
- Reopen the
examplesfolder in Zed.
Your setup check
Open the Extension Gallery and confirm Deno shows as Installed.
Press Control-` to open Zed's terminal and run:
deno --version
The output should begin with deno and a version number.
Your Project Panel should show:
examples
├── .zed
│ └── settings.json
├── deno.json
└── programs
Confirm four points before proceeding:
- The Deno extension displays as Installed.
.zed/settings.jsoncontains the configuration shown above.- The
examplesproject is trusted in Zed. deno --versionworks in the project terminal.
When all four hold, your editor, runtime, and project are speaking the same language, literally. The final prerequisite is optional, a convenience I recommend but won't require.
This page follows Zed's official documentation for Deno language support and project settings.
Next (optional): Run and watch the current file from the editor →