microsoft/vscode-chrome-debug-core

Hide length and __proto__ for arrays

atg opened this issue · 1 comments

atg commented

vscode currently includes two named children for every array: length and __proto__. When you have e.g. JSON data with lots of nested data structures it becomes quite distracting.

50869018-32410200-13aa-11e9-8ec7-f81b2ec1b7b1

As you can see there is a lot of redundant visual noise. The length property does not need to be included as a named child because it is already shown as Array(<length>) in the variable description. The __proto__ property isn't interesting either, it's just Array.prototype which can be accessed through the debug console if desired.

It would be nice if vscode could hide these two properties and display arrays such as this:

50869180-d9be3480-13aa-11e9-83cb-8800833f1d5d

screen shot 2019-01-09 at 01 39 51

(I hope this is the right issue tracker)

That would be helpful.