You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constvalue=/* set from `myEditor.getModel()`: */`{ "hello": "World"}`;// Hover on each property to see its docs!constmyEditor=monaco.editor.create(document.getElementById("container"),{
value,language: "json",automaticLayout: true,});
Reproduction Steps
Using Starting with the basic Hello World.
Change language to json.
Then paste a large json string (approx 1Mb) into the preview pane.
NB: I cannot supply the json for privicy and security reasons.
Page locks up for just under 2 minutes.
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
https://microsoft.github.io/monaco-editor/playground.html
Monaco Editor Playground Code
Reproduction Steps
Using Starting with the basic Hello World.
Change language to json.
Then paste a large json string (approx 1Mb) into the preview pane.
NB: I cannot supply the json for privicy and security reasons.
Page locks up for just under 2 minutes.
Actual (Problematic) Behavior
Page freezes for just under 2 minutes
Expected Behavior
Page should not freeze
Additional Context
I think this might be the root issue for the following issues with running Monaco in Blazor
serdarciplak/BlazorMonaco#109
serdarciplak/BlazorMonaco#106
I thik the problem occurs when the JavaScript pane is executing myEditor.getModel() as hinted by the comment
VS Code Desktop app handles my large json file witout any issues.
The text was updated successfully, but these errors were encountered: