denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
94k stars 5.23k forks source link

VSCode Jupyter integration: ts and deno enabled at the same time? #22628

Open neongreen opened 6 months ago

neongreen commented 6 months ago
❯ deno --version
deno 1.41.0 (release, aarch64-apple-darwin)
v8 12.1.285.27
typescript 5.3.3

❯ code --version
1.87.0
019f4d1419fbc8219a181fab7892ebccf7ee29a2
arm64

I created a new Jupyter notebook in VSCode and switched kernel to Deno.

It looks like Deno is working -- but I'm also getting TS errors that I shouldn't be getting with Deno.

Am I doing something wrong?

Sample code:

const fileContents = await Deno.readTextFile("");
image image
neongreen commented 6 months ago

Note: this goes away if I save the notebook in a workspace. Only shows up if I create a new editor with a notebook but don't save it.

neongreen commented 6 months ago

Oops, should've filed in vscode_deno I guess