What does .setEagerModelSync(true)
do? After removing it, why does editor's context menu stop functioning?
#4611
Unanswered
Paper-Folding
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry if this question is possibly duplicated, but I investigated first.
I'm working with Monaco-Editor recently following vite react sample, I found this line
monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true);
in userworker.ts and I don't quite understand what is this line doing.If I remove this line, the editor will still functioning normally, except that the context menu is not working.
The doc says
setEagerModelSync
"Configure if all existing models should be eagerly sync'd to the worker on start or restart.", but I don't quite understand:Beta Was this translation helpful? Give feedback.
All reactions