-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
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
Better Support for ESNext #4078
Comments
@EisenbergEffect thanks for the feedback.
Actually decorators are supported and you can enable them in the jsconfig.json pls see microsoft/TypeScript#6872 (comment)
We will add support for disabling the built-in diagnostics, pls see the discussion in #3804 and I'm closing this issue in favor of this one. |
closing as a duplicate of #3804 |
@egamma Nice to see you here :) |
@EisenbergEffect this works for me. Tested in 0.10.11: Error without the No error when |
I also see that you have both a jsconfig.json and a tsconfig.json. Is it a mixed .js and .ts project? If yes then you can set allowJS to true in the tsconfig.json and then you can delete the jsconfig.json. If it is a .js project only then I would delete the tsconfig.json. |
If I remove the tsconfig, the problem goes away :) It's not a mixed project per se. I was working on a sample app for an Aurelia workshop I'm going to be running. I included the tsconfig because I suspect some students will want to use TS instead of Babel. So, it was there out of a convenience for them. However, I should probably provide them with a complete TS setup separate from this one. Having both clearly causes the issue and probably doesn't make sense. Thanks! |
👍 on separate .ts and .js setup. |
At present, using ESNext features such as decorators, async/await, class instance fields, etc. results in the editor drawing red squiggles. In the very least, it would be nice if there was an easy way to stop VSCode from complaining about these features in a normal .js file.
Perhaps some thought needs to go into how VSCode will handle the evolution of ES in general. With developers using tools like Babel, and opting into stage-n features before they are finalized as a norm, I think this is going to crop up more and more. Not to mention that popular frameworks like Aurelia, React, Ember and Angular 2 are using these features more.
As for me, I have a hard time recommending VSCode to anyone that isn't doing TypeScript or sticking strictly to ES2015. It gets ugly pretty quick otherwise. I'm looking forward to seeing this improve. It's the only thing really holding me back. Thanks for all the great work so far!
The text was updated successfully, but these errors were encountered: