Polymer / vscode-plugin

Provides autocompletion, linting, and more for web components.
Other
74 stars 11 forks source link

polymer-ide is highlighting the object spread operator as an error in VS Code #87

Open cherukumilli opened 6 years ago

cherukumilli commented 6 years ago

Adding the object spread operator anywhere in the script section of the element and you will see polymer-ide highlighting it as an error (red).

for example:

<link rel="import" href="../../bower_components/polymer/polymer.html">
<dom-module id="sample-element">
<script>
  Polymer({
    is: 'sample-element',

    attached: function() {
       const obj = {a: 1, b: 2};
       const dupe = {...obj};  // this line is highlighted red by the polymer-ide in VS code 
    }
  });
</script>
</dom-module>
bennypowers commented 6 years ago

I get this in unrelated .js files in one of my projects

jsilvermist commented 6 years ago

I recently switched to VSCode and now I'm getting the same thing. Is there any update on when this might be fixed?

Haprog commented 5 years ago

This makes me sad. The error it gives is: Unexpected token ... polymer-ide(parse-error)