This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If I have a code similar to this one: export default Ember.Route.extend({ x1: Ember.inject.service('myserv'), x2: "noname", redirect (mode, transition) { this.transitionTo("console.dashboard") }, actions: { gotoDbStats() { this.transitionTo("console.global-stats") }, getMydata1() { this.get('cm').getOpenSessions().then( x => { // Do something return x }) }, signOut() { const cm = this.get('cm') cm.walletClose().then( () => window.location.replace('/') ) } } get reformatted this way, deleting all empty rows: export default Ember.Route.extend({ x1: Ember.inject.service('myserv'), x2: "noname", redirect(mode, transition) { this.transitionTo("console.dashboard") }, actions: { gotoDbStats() { this.transitionTo("console.global-stats") }, getMydata1() { this.get('cm').getOpenSessions().then(x => { // Do something return x }) }, signOut() { const cm = this.get('cm') cm.walletClose().then(() => window.location.replace('/') ) } } }
also, the indenting of signOut is less then optimal IMHO
Except the arrow function formatting this does not seem to be ES6 specific.
There are also the function definitions in ES6 style. But you are right: the problem is there also when editing old JS code, I didn't notice before.
Empty row preservation is now configurable - web-main a16756d7232a.