vscode-plugin
vscode-plugin copied to clipboard
polymer-ide is highlighting the object spread operator as an error in VS Code
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>
I get this in unrelated .js files in one of my projects
I recently switched to VSCode and now I'm getting the same thing. Is there any update on when this might be fixed?
This makes me sad. The error it gives is: Unexpected token ... polymer-ide(parse-error)