Ideas for new features and how to implement them #328
Replies: 1 comment 2 replies
-
Delayed retrieval of large arraysDescriptionvscode can group large arrays by 100 separators, such as Currently, all elements are retrieved first, but retrieving partial elements as this group expands will reduce loading costs while allowing large arrays to be handled without restriction. How to implementThere are two ways of doing this, but as a common part of both, it is necessary to be able to get the number of elements in an array. It is also necessary to determine whether it is an array or not, as this functionality should only work for arrays. The number of elements can be obtained with numchildren in the response to property_get. The following methods are possible for determining the array
1. Using the p argument of property_getIn the debugger, the p argument of the property_get command can be used to get partial child elements. One problem with the implementation using the p argument is that it is not possible to retrieve only elements of the array in the specified range. For example, if the first child element is retrieved, it will be retrieved as Correcting this requires a solid understanding of the debugger specifications. 2. Retrieve property_get 100 timesThe method is simple: Implemented in the way described in 2. in the following. If there are no problems, this seems to be the way to go. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion summarizes ideas for new features of the debug adapter and how to implement them.
Any questions or improvements to my ideas, please feel free to comment.
Beta Was this translation helpful? Give feedback.
All reactions