The default states 5000 symbols. Is this dependent on the machine's performance or something else?
From VS Code settings:
JSON: Max Items Computed The maximum number of outline symbols and folding regions computed (limited for performance reasons).
The default states 5000 symbols. Is this dependent on the machine's performance or something else?
From VS Code settings:
JSON: Max Items Computed The maximum number of outline symbols and folding regions computed (limited for performance reasons).
This relates to the GUI buttons in the editor, you can use to fold down the JSON tree.
If there are more items than the maximum, the routine that prepares those buttons will just give up, and the buttons won't be displayed. I've experienced it for a package-lock.json in a project with lots of dependencies.
A reasonable approach for this would be:
To avoid performance issues with large JSON files, JSON language support now has an upper limit on the number of folding regions and document symbols it computes (for the Outline view and breadcrumbs). By the default, the limit is 5000 items, but you can change the limit with the setting json.maxItemsComputed.