Replies: 5 comments
-
I looked into this. it's basically really hard 😂 vscode doesn't provide enough APIs for this. You're forced to create your own editor |
Beta Was this translation helpful? Give feedback.
-
It might be possible with ts2civet and a lot of additions to the Civet LSP. We already do tons of compiling and source mapping so it might not be completely unachievable but it is a bit of work for sure. |
Beta Was this translation helpful? Give feedback.
-
awesome 🎉 |
Beta Was this translation helpful? Give feedback.
-
ok I think this is possible now after some more research |
Beta Was this translation helpful? Give feedback.
-
Might be interesting here. I already successfully used it to create my own civet extension. Also look up the vscode extension from astrojs, it's build with volarjs |
Beta Was this translation helpful? Give feedback.
-
Adoption would be way higher if Civet was just a vscode plugin. The idea is that you can view any js/tsx/json file as Civet and when you write/code all it's doing is updating the js/ts/json file with the correct js/ts/json. We do this already for Markdown where we view the previewed version and any edits update the markdown file in-place.
Beta Was this translation helpful? Give feedback.
All reactions