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.

Bug 270933 - Allow collapsing arrays in JavaScript (JSON style objects)
Summary: Allow collapsing arrays in JavaScript (JSON style objects)
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-22 13:44 UTC by Eccenux
Modified: 2017-06-22 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows current collapsing options of the `object` in Netbeans (21.65 KB, image/png)
2017-06-22 13:44 UTC, Eccenux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eccenux 2017-06-22 13:44:07 UTC
Created attachment 164597 [details]
Shows current collapsing options of the `object` in Netbeans

I'm developing an ExtJS application and it would be HUGE improvement of dev workflow if I would be able to collapse arrays in object defintions.

With below definition Netbeans only allows to collapse objects and sub-objects (like `subitem`), but not arrays (like `items`). In ExtJS items defintion can be very, very long. And when you need to get to the bottom of things (pun intended) you're out of luck.

```
var object = {
	subitem: {
		someting : true,
		items: [
			{id: 'abc'},
			{id: 'def'},
			//
			// ...
			// lots
			// and lots
			// AND LOTS of this can be ;-)
			// ...
			//
			{id: 'ghi'}
		]
	},
	somethingElse: {
		enbled: false
	}
};
```