LeoDog896 / svelte-monaco

svelte + monaco integration
https://leodog896.github.io/svelte-monaco/
MIT License
5 stars 0 forks source link

path option props #3

Open lorypelli opened 1 month ago

lorypelli commented 1 month ago

the official monaco editor accepts also a file path option, add it please

LeoDog896 commented 1 month ago

I can't seem to find it in the API docs - where is that?

lorypelli commented 1 month ago

I can't seem to find it in the API docs - where is that?

https://microsoft.github.io/monaco-editor/typedoc/functions/editor.createModel.html

uri paramether

LeoDog896 commented 1 month ago

Ah, so this is asking for more multi-model support! It would have to be a more extensive PR.

lorypelli commented 4 weeks ago

Ah, so this is asking for more multi-model support! It would have to be a more extensive PR.

Not sure, you can pass the path option as a normal option to the component, without using any createModel thing, but maybe that needs to be used in the component code itself...

lorypelli commented 4 weeks ago

https://github.com/suren-atoyan/monaco-react/blob/master/src/utils/index.ts#L48