Skip to content

Set the ScriptTarget of ESNext to be 99 so it doesn't change between releases #32461

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

Merged
merged 3 commits into from
Jul 18, 2019

Conversation

orta
Copy link
Contributor

@orta orta commented Jul 17, 2019

@andrewbranch spotted a bug in the playground where ESNext wasn't being recognized, this turned out to be because this code replicates the entire set of targets in monaco-typescript, but ESNext is wrong in 3.5.1 because of ES2019 and ES2020.

This makes it much harder for the UI to go out of sync with the data, missing 2019/2020 isn't critical, but it's a bit more annoying for ESNext to go out of sync.

…ween releases (and yet another module system?!)
@weswigham
Copy link
Member

@andrewbranch @uniqueiniquity This is going to need some VS side changes, too IIRC, right (and was something VS wanted to see, too)?

@orta
Copy link
Contributor Author

orta commented Jul 18, 2019

I took a look on the VS Code and didn't find anything noting ScriptTarget and ScriptKind in a way that I think should break. I updated monaco-typescript as a part of the playground work.

Screen Shot 2019-07-18 at 12 02 03 PM

If @uniqueiniquity is happy we can merge

Copy link
Contributor

@uniqueiniquity uniqueiniquity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@orta orta merged commit 97b5671 into microsoft:master Jul 18, 2019
@goodmind
Copy link

What would you do when ES2099 lands?

@ExE-Boss
Copy link
Contributor

@goodmind Actually, that would be ES2112, and that’ll be in a century, so we’ll cross that bridge when we get there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants