#Help fix using Deno together with Bun in one VSCode window

13 messages · Page 1 of 1 (latest)

scarlet hamlet
#

I have this repo: https://github.com/nikitavoloboev/ts

It has 2 folders, deno and bun.

Bun part works. However Deno one throws this error (image below) on all imports.

I don't know how to fix it.

If I just open deno folder only in VSCode it works.

GitHub

Contribute to nikitavoloboev/ts development by creating an account on GitHub.

modest bramble
#

In your VS Code settings.json set deno.paths to control which files / folders Deno LSP should be turned on for.

scarlet hamlet
#

shall it be this?

#

ah that seems to have worked ❤️

#

also my editor does not respect my fmt settings

#

I save file but semicolon is still there

#
{
  "tasks": {
    "watch": "deno run --watch -q -A --unstable run.ts"
  },
  "fmt": {
    "options": {
      "semiColons": false
    }
  }
}

#

is my deno.jsn file

#

also give it as path in .vscode