Skip to content

Can we suppress rest/spread "syntax" non-errors, for babel/ES6 .js? #7617

Closed

Description

@igrayson

This is not a feature request (for rest/spread operator) or a bug report (that rest/spread doesn't work).

  1. Is there a way to configure vscode today to suppress or otherwise not show as syntax errors the usage of the object spread operator?
  2. If this is not possible, should we update the public documentation about ES6 support (which today links to a summary of ES6 features including rest/spread) to indicate this lack of support?

Activity

  1. mhegazy commented on Mar 21, 2016

    @mhegazy
    Contributor

    ES6/ES2015 does not have support for rest/spread for object literals. nor will the next version ES7/ES2016. object rest and spread is a proposal for TC39 for ES8/ES2017. it is currently at stage 2, see https://github.com/tc39/ecma262#current-proposals. ES6 array spread is fully supported, and the documentation is accurate.

    Suppressing the error is not sufficient. the whole system needs to know what it mean, so that formatting, editing, completion, etc.. work.

    this is a duplicate of #2103, it is something on our road map and should be able to get to it shortly.

  2. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions