From 1e94e1c9c53400d8c0d8682eb9a4451df34eb079 Mon Sep 17 00:00:00 2001 From: fry69 <142489379+fry69@users.noreply.github.com> Date: Wed, 1 Oct 2025 13:20:47 +0200 Subject: [PATCH] docs: troubleshoot VS Code extension (#3510) This adds a short blurb how to install the VS Code extension to the troubleshooting guide. Possible concerns: - maybe redundant as there are already official VS Code Deno docs - could be shortened to just refer to the main docs or completely removed --- docs/latest/advanced/troubleshooting.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/latest/advanced/troubleshooting.md b/docs/latest/advanced/troubleshooting.md index dea877ae..3a8e2626 100644 --- a/docs/latest/advanced/troubleshooting.md +++ b/docs/latest/advanced/troubleshooting.md @@ -75,3 +75,19 @@ If your deployment doesn't boot, check the following things: 1. Make sure that you ran `deno task build`. 2. Make sure that your entry points to the generated `_fresh/server.js` file instead of `main.ts`. The latter won't work with Fresh 2. + +## VS Code does not find packages and/or types + +If you see errors in VS Code like `Cannot find module 'fresh/runtime'` or see a +lot of TypeScript errors, you likely have not installed the Deno extension. You +can easily find it inside VS Code's extension browser (identifier: +`denoland.vscode-deno`) or get it from the +[marketplace](https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno). + +Once installed and enabled, the currently installed Deno version should appear +in the bottom status bar. If this does not happen automatically, you can enable +the Deno extension via the command palette (Cmd+Shift+P on macOS, Ctrl+Shift+P +on Windows/Linux) and run `Deno: Enable`. + +For detailed instructions, see the official +[Deno VS Code documentation](https://docs.deno.com/runtime/reference/vscode/).