vscode_deno: Cannot find name 'Deno'
I did Ctrl+Shift+P -> Initialize Workspace Configuration, which created me .vscode/settings.json
:
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": false
}
And tried restarting Language Server, and restarted VSCode, but still… Nothing helps, the problem occurs:
vscode-deno: v3.7.0 deno 1.11.5 (release, x86_64-pc-windows-msvc) v8 9.1.269.35 typescript 4.3.2 GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
P.S. I now temporarily use the deprecated justjavac.vscode-deno
instead, - it seems to be working. Might get back to denoland.vscode-deno
as soon as this issue is resolved!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 27 (10 by maintainers)
@kitsonk yes!
After what you’ve said, I remembered VSCode has such an experimental feature:
It is one cool feature making your “Problems” tab to show errors/warnings all around the whole project, instead of just open files.
But unfortunatelly It’s currently hugely bugged, because sometimes it unexpectedly goes into sources of libraries, rather than just project code. I tried disabling this setting, and yes, - now Deno extension works:
I guess since it’s narrowed down, we can close this issue, in a hope that these two issues will get resolved sometime:
I just found a solution for me. I had the Volar extension installed which somehow must have conflicted with the Deno language server. How didn’t I think of disabling other extensions.
Previously, I had to disable the built-in Typescript language server and manually restart the deno language server as a workaround.
It doesn’t, I am just trying to figure out what is different about your environment.
Actually, I have been using powershell instead of
GNU bash
on my windows VM. I will try that and see if it causes problems.