Skip to content

property functions being flagged as invalid code in js files #9207

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

Closed
sandy081 opened this issue Jun 16, 2016 · 1 comment
Closed

property functions being flagged as invalid code in js files #9207

sandy081 opened this issue Jun 16, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@sandy081
Copy link
Member

From @jefflindholm on June 15, 2016 12:33

  • VSCode Version: 1.2.1
  • OS Version:
    windows 10
    Steps to Reproduce:
  1. create a js file
  2. create a class file and add a property
    get "[js] 'property declarations' can only be used in a .ts file." with the property code highlighted.
    I am attempting to use code to do react coding and using the property functions keep me from littering my code with myfunc = myfunc.bind(this); unless I actually need to rebind something. It is more an annoying visual thing to have a lot of code underlined than anything else, but it would seem to be something you should allow in js/jsx files.
class MyClass {
  someFunction = () => {

  }
}

Copied from original issue: microsoft/vscode#7718

@mhegazy
Copy link
Contributor

mhegazy commented Jun 16, 2016

Duplicate of #6997. Fixed in #9189.

@mhegazy mhegazy closed this as completed Jun 16, 2016
@mhegazy mhegazy added the Duplicate An existing issue was already created label Jun 16, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants