nvarner / typst-lsp

A brand-new language server for Typst, plus a VS Code extension
MIT License
1.19k stars 77 forks source link

VSCode Web Extension #351

Open miliog opened 11 months ago

miliog commented 11 months ago

I think it would be very cool if the typst-lsp extension also worked inside the browser. How difficult would it be to add web support?

image

More information here:

PgBiel commented 10 months ago

How difficult would it be to add web support?

It seems to be a bit involved: https://code.visualstudio.com/api/extension-guides/web-extensions#update-existing-extensions-to-web-extensions

Some contribution work will likely be needed to make this happen, but I'd recommend talking with @nvarner first.

nvarner commented 10 months ago

It would take some substantial work, but I think it's possible to do without losing too much (if any) functionality.

However, my main concern is competing with typst.app. I don't know their business model, so I can't say for sure, but I think a web version of this extension would be a direct competitor to the official online Typst editor. Though technically achievable and legal, I don't want to create something like that right now; Typst having paying customers is better for the development of the language, and I don't want the creators to regret open sourcing the project.

If they are actually okay with a web extension, then I'd also be okay with the functionality (though I may not be able to immediately work on it; Lapce support is already eating up my time). I'll leave the issue open for now just in case, but I don't expect this to move forward in the near future.