egoist/vue-monaco

Using two editor instances in one component

haimich opened this issue · 0 comments

I am using two editors in my component and noticed that the underlying editor instances don't seem to be separated. When I set the dark theme on one editor the other also uses it instantly.

I also noticed that options set on the one editor (like word wrap) sometimes leak to the other editor. I created a simple app to demonstrate the issue with version 1.0.0 of vue-monaco:

https://codesandbox.io/embed/vue-template-zoejm

It would be nice if the MonacoEditor would manage to separate the instances so they can be configured separately. By the way I never had any issues with leaking of the actual editor content.

Thanks!