Setup Deno language server in Zed editor

1 min read

178 words

Deno has been removed from the Zed core and is now available as an extension. To install the extension open up the command palette (default is cmd + shift + p and search for zed: extensions). There you can search for Deno.

screenshot of zed extensions tab

Unfortunately, there is still a small problem that the extension is sometimes only loaded after the TypeScript language server. This means that some "problems" are displayed that should actually work without problems with the Deno language server. We have to make sure that local settings (.zed/settings.json) or global settings (cmd + ,) are changed. For example, in TypeScript and TSX files, the Deno LSP must always be loaded first. In addition, eslint and the TypeScript language server should be deactivated. This works with the following snippet, which should be entered in the above-mentioned files (either/or).

{
  "languages": {
    "TypeScript": {
      "language_servers": ["deno", "!typescript-language-server", "!eslint", "..."]
    },
    "TSX": {
      "language_servers": ["deno", "!typescript-language-server", "!eslint", "..."]]
    }
  }
}

Thanks for reading and have a great day,

Niklas