Skip to content

fix(json): make the JSON server's computation limit configurable - #2198

Merged
merks merged 1 commit into
eclipse-wildwebdeveloper:masterfrom
merks:pr-2196
Aug 16, 2026
Merged

fix(json): make the JSON server's computation limit configurable#2198
merks merged 1 commit into
eclipse-wildwebdeveloper:masterfrom
merks:pr-2196

Conversation

@merks

@merks merks commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

The VSCode JSON language server computes document symbols and folding ranges without limit unless the client configures one. Wild Web Developer
never sent any configuration, so a 100,000 line file produced 20,001 symbols and folding ranges per request, and with the Outline view open the UI thread spent seconds per keystroke rehashing that tree.

Add a JSON preference page with the maximum number of computed items, defaulting to 5000 as VSCode and the existing YAML preference do, and 0 for no limit. The validate and http entries have to be sent along because
the server re-reads every setting from each notification: without validate.enable it disables validation, and without http.proxyStrictSSL it stops verifying certificates when downloading remote schemas.

The VSCode JSON language server computes document symbols and folding
ranges without limit unless the client configures one. Wild Web
Developer
never sent any configuration, so a 100,000 line file produced 20,001
symbols and folding ranges per request, and with the Outline view open
the UI thread spent seconds per keystroke rehashing that tree.

Add a JSON preference page with the maximum number of computed items,
defaulting to 5000 as VSCode and the existing YAML preference do, and 0
for no limit. The validate and http entries have to be sent along
because
the server re-reads every setting from each notification: without
validate.enable it disables validation, and without http.proxyStrictSSL
it stops verifying certificates when downloading remote schemas.
@merks

merks commented Aug 16, 2026

Copy link
Copy Markdown
Contributor Author

@vogella

Are you okay with the shorted label as described here:

#2196 (comment)

@vogella

vogella commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

@vogella

Are you okay with the shorted label as described here:

#2196 (comment)

Yes, thanks

@merks
merks merged commit d9bc1bb into eclipse-wildwebdeveloper:master Aug 16, 2026
9 checks passed
@merks
merks deleted the pr-2196 branch August 16, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants