microsoft / monaco-editor

A browser based code editor

Home Page:https://microsoft.github.io/monaco-editor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Folding not working for big json objects

rubenmampaeyis opened this issue · comments

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

Reproduction Steps

In an Angular project:

  1. Display a very big json file 200.000+ lines
  2. After all the data is loaded call this._instance.getAction('editor.foldLevel2').run();
  3. Every object starting from line 168840 isn't folded

Actual (Problematic) Behavior

Not all objects are folded correctly.

Expected Behavior

All objects should fold correctly despite the length of the file.

Additional Context

No response