Skip to content
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

Could vs code supports ES6 in <script></script>? #455

Closed
g0ne150 opened this issue Nov 22, 2015 · 8 comments
Closed

Could vs code supports ES6 in <script></script>? #455

g0ne150 opened this issue Nov 22, 2015 · 8 comments
Assignees
Labels
feature-request Request for new features or functionality javascript JavaScript support issues

Comments

@g0ne150
Copy link

g0ne150 commented Nov 22, 2015

I use Vue and webpack to build my webapp, which allows me to write a web component like this:

<style>
 /*the component's css goes here*/
</style>
<template>
  <!-- the component's html goes here-->
  <div></div>
</template>
<script>
  // the component's js goes here
  import Xx from 'xx'
  let xx = new Xx()
  xx(yy => {
    return 'Have a nice day'
  })
</script>

but, the problem is even I created a jsconfig.json file which sets the target to ES6. It just didn't work.

@g0ne150 g0ne150 changed the title could vs code supports ES6 in <script></script>? Could vs code supports ES6 in <script></script>? Nov 22, 2015
@joaomoreno
Copy link
Member

Related to #337

@jrieken jrieken added feature-request Request for new features or functionality javascript JavaScript support issues labels Nov 24, 2015
@jrieken jrieken added the bug Issue identified by VS Code Team member as probable bug label Dec 4, 2015
@jrieken
Copy link
Member

jrieken commented Dec 10, 2015

Done by having the default be ES6

@jrieken jrieken closed this as completed Dec 10, 2015
@lordgreg
Copy link

@jrieken I don't understand your last comment on this issue? This is done by having the default be ES6? Where? Default what? You mean in tsconfig.json?

{
  "compilerOptions": {
    "target": "ES6",

@g0ne150
Copy link
Author

g0ne150 commented Dec 11, 2015

@lordgreg It seems theres no needed jsconfig.json for ES6 syntax, but ES6 in 'script' tag nothing changed
2015-12-11 10 35 57

@egamma egamma added feature-request Request for new features or functionality and removed feature-request Request for new features or functionality bug Issue identified by VS Code Team member as probable bug labels Dec 11, 2015
@jrieken
Copy link
Member

jrieken commented Dec 11, 2015

jsconfig never includes html files, but the default settings, even in absence of a config files are now set to ES6

@lordgreg
Copy link

So this is getting fixed in new update?

@jrieken
Copy link
Member

jrieken commented Dec 11, 2015

With Dec15 the default for all JS will be ES6, however we have not tackled html-files and jsconfig

@arlair
Copy link

arlair commented Feb 3, 2016

So shouldn't this or #559 be opened if it is not working in HTML files?

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

6 participants