You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite the fact that the code compiles successfully, the language service in 2.0.0-dev.20160707 is reporting (via VS Code in my instance) an error whenever a function is declared async when targeting < ES2015:
VS Code is successfully using the correct 2.0 preview:
I can post this to the VS Code issue tracker if more appropriate, but I'm pretty sure these errors come from the TS language service.
The text was updated successfully, but these errors were encountered:
I think the language service error is correct, since TSC does not yet support async functions for non-es2015 targets. But until recently it didn't report an error in some cases (see #7334). This was fixed recently, and your language service is recent enough to have this fix, but I suspect the version you are compiling with is older. If you look at the emitted code for async functions, you might see they are not emitted correctly (see #7706).
I know that TSC didn't support it until recently, but that's actually what caused me to upgrade to 2.0 prerelease.
What would cause it to think I'm using an older compiler? I'll admit I fire the compiler off using gulp rather than tsc, but I did both a global and project-local install of typescript@next which is what caused Code to show the new version in the corner.
I know that TSC didn't support it until recently, but that's actually what caused me to upgrade to 2.0 prerelease.
The latest prerelease still doesn't support async functions in ES3/5, that hasn't been merged yet. #1564 is still open and looks like the last feature yet to land before 2.0 is ready for release.
I fire the compiler off using gulp
Perhaps gulp has it's own dependency on tsc v1.8? I would be installed somewhere like proj/node_modules/gulp-typescript/node_modules/typescript/.
Despite the fact that the code compiles successfully, the language service in 2.0.0-dev.20160707 is reporting (via VS Code in my instance) an error whenever a function is declared
async
when targeting < ES2015:VS Code is successfully using the correct 2.0 preview:
I can post this to the VS Code issue tracker if more appropriate, but I'm pretty sure these errors come from the TS language service.
The text was updated successfully, but these errors were encountered: