vscode-plugin icon indicating copy to clipboard operation
vscode-plugin copied to clipboard

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

Open cherukumilli opened this issue 7 years ago • 3 comments

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>

cherukumilli avatar Mar 05 '18 01:03 cherukumilli

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

bennypowers avatar Mar 09 '18 11:03 bennypowers

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

jsilvermist avatar Jun 30 '18 02:06 jsilvermist

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

Haprog avatar May 16 '19 08:05 Haprog