JavaScript: Enable ES6 by Default - #337
Conversation
|
Hi Felix Rieseberg (@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. Johannes Rieken (@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 ;-) |
|
Johannes Rieken (@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 |
|
Felix Rieseberg (@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 Felix Rieseberg (@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 Felix Rieseberg (@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) |
|
Felix Rieseberg (@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
|
Johannes Rieken (@jrieken): This should now be good to go 🍻 |
|
Cheers 🍻 |
JavaScript: Enable ES6 by Default
|
Nice! Thanks all |
Closes #318
🚢 João Moreno (@joaomoreno) lauren (@poteto) Yehuda Katz (@wycats)