We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug VS Code extension complains about top-level await
To Reproduce Following code will produce problem in visual code
// file: main.ts export const sleep = (ms: number) => new Promise((ok) => setTimeout(ok, ms)); await sleep(1000); console.log("hello world");
but, it works well when I run deno run main.ts
deno run main.ts
Expected behavior No error
Screenshots
Versions
vscode: 1.58.2 deno: 1.12.2 extension: 3.7.0
The text was updated successfully, but these errors were encountered:
and also, it complains about not being a esmodule without import or export statement
esmodule
import
export
Sorry, something went wrong.
Wow, It works now after I restart VS Code, 🤔
Probably caused by what #474 fixed but hasn't been released yet.
No branches or pull requests
Describe the bug
VS Code extension complains about top-level await
To Reproduce
Following code will produce problem in visual code
but, it works well when I run
deno run main.ts
Expected behavior
No error
Screenshots
Versions
vscode: 1.58.2 deno: 1.12.2 extension: 3.7.0
The text was updated successfully, but these errors were encountered: