subtleGradient / language-javascript-jsx

JavaScript with JSX Bundle for Atom
45 stars 6 forks source link

Atom locks up on certain key sequence #18

Open dijs opened 8 years ago

dijs commented 8 years ago

When writing a new react component method in ES6 class syntax, I came across this nasty bug.

Here is some context:

export default class BlahBlah extends Component {
  method() {
    return ()
  }
}

With the above code, all is fine.

The bug fires when I type <, then a d inside the parenthesis after the return. (Creating a DIV tag)

The atom editor completely locks up and I am forced to close the application...

Any ideas?

subtleGradient commented 8 years ago

Dang. I'll check it out and see if I can fix that. Thanks for the report! You may want to try the Babel language package for Atom just to unblock you at least. I'm not sure when I'll be able to push a fix. On Thu, Nov 5, 2015 at 9:29 AM Richard van der Dys notifications@github.com wrote:

When writing a new react component method in ES6 class syntax, I came across this nasty bug.

Here is some context:

export default class BlahBlah extends Component { method() { return () } }

With the above code, all is fine.

The bug fires when I type <, then a d inside the parenthesis after the return. (Creating a DIV tag)

The atom editor completely locks up and I am forced to close the application...

Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/subtleGradient/language-javascript-jsx/issues/18.

dijs commented 8 years ago

Thanks, no rush.