-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
JavaScript: Enable ES6 by Default #337
Conversation
Hi @felixrieseberg, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
Damn gotta fix that build. @jrieken is the guy to review this. |
As much as I would like this change to be merged and as correct as it will, I still have to reject. An attempt to explain: Our current JavaScript implementation is based on a slightly out-dated version of TypeScript and a lot of code I am not so proud of - we basically rewrite JavaScript to TypeScript. It was the right thing to do back when we started but in the mean time TypeScript catches up and very soon we will replace our custom JavaScript language service with the TypeScript solution. And as long as TypeScript sets the default to ES5 we shouldn't do anything different. Changing the default and then, by using TypeScript, changing it back won't get applause. Tho having said that. This is where TypeScript sets the default ;-) |
@jrieken: Thanks for the explanation. I'm not married to any particular implementation, but I'm worried that having to create solution files for simple JavaScript doesn't exactly advertise Code as a great JavaScript editor. Are you opposed to the user scenario of editing ES6 without further configuration? Since the issue is closed too, it seems like you'd rather have people use another editor. Leaving it open, even if the issue is upstream, would at least signal that we're aware that having to read documentation just to edit a simple *.js file with a |
@felixrieseberg Closing for now means we will reopen as soon as we have the chance to do provide a long term fix. |
I agree with @felixrieseberg, closing the issue (#318, not the PR) sends a signal to other people with less context that Code will never support ES6 by default. |
I think a jsconfig.json is just so weird. Why |
Also agree that ES6 should be default. |
ES6 should be the default. I normally can't be bothered creating a file to get syntax highlighting and close VS Code and go use a different editor. |
Definitely ES6 should be the default in my opinion |
Hi @felixrieseberg, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
Discussed with with TS team and they will make sure Latest becomes the default when project salsa is real (microsoft/TypeScript#6017, microsoft/TypeScript#4789) |
@felixrieseberg I know it has been a while and there been discussion but I wonder if you willing to continue the work? Simply rebase with master and instead of |
Thanks, I'm very happy about this - I'll rebase and update. Should be in in about three hours (once I'm back in front of a notebook). Thanks a lot 🚀! |
Thanks. No hurries. End of week is good for me. |
❤️ |
- This tiny commit enables ES6 support for JavaScript files by default, ensuring that VS Code supports popular JavaScript frameworks and modules out of the box. - Tests pass, behaviour otherwise unchanged. Closes microsoft#318
7384c3a
to
8bc42af
Compare
@jrieken: This should now be good to go 🍻 |
Cheers 🍻 |
JavaScript: Enable ES6 by Default
Nice! Thanks all |
Closes #318
🚢 @joaomoreno @poteto @wycats