how difficult was that process? I've been considering attempting something similar to allow me to edit sample code in VS Code without having to run the Blawx server.
10/03/2022, 6:00 AM
Not that difficult but there are some things to be aware of. I'll post some info here later this morning. And we can always jump on a call if needed (I am in the Netherlands, timezone wise)
In my case the editor is build with typescript as well.. so I have a separate build and bundling proces using vite (I use react with my own set of visual editor components). A thing to watch out for is that you will have 2 sets of tsconfigs which need to cancel each other out (one for the extension and one for the editor).. using a monorepo might be better (tldraw does that).
Another thing is that the webview has content security policies, depending on the assets that you use, you might need some extra configuration.
10/03/2022, 2:31 PM
Thanks. We have different perspectives on "not that difficult", I guess, but that's very helpful!
10/03/2022, 4:41 PM
You can do it!😀 and if you need some help then don't be hesitant to contact me and perhaps I can help😊. Good luck!
10/03/2022, 4:55 PM
I will take you up on that. Probably not soon, though. Thanks again!
10/03/2022, 6:42 PM
Just curious : do you have a typescript codebase and what bundler do you currently use?
10/03/2022, 8:28 PM