-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add extension support for vscode web (github.dev) #1190
Comments
This is a significant undertaking which requires many different things
More details can be found here: https://code.visualstudio.com/api/extension-guides/web-extensions @asafamr did a POC of porting the language server to run in the monace editor, which is related: https://github.com/asafamr/monaco-svelte . Maybe he has some more insights. |
I'm not really familiar with VSCode web extensions but from a quick look, it does seem very similar. Two points I can think of
I might try porting the POC to a web extension - I'll update here if I do |
I think processor support might not be available in the web version. Since we can't load the Another problem is I can think of it's probably the bundle size. Don't know how much the bundle size hurts the performance. |
I've started porting the language tools extension to vscode's web extension format: currently bundling with esbuild and shimming modules without changing the extension source code. extension bundle size is currently around 10MB, half of which are typescript related modules: ts compiler, prettifier... |
@asafamr I saw you made progress and even published a POC to the marketplace - very cool! How is your feeling on getting this in a good state so far? My vision would be to adjust the official extension so that we can use it for the web, too - would you be ok with that? If that involves some refactoring around modules which need to be replaced depending on the environment I'm all for it. Some questions:
|
@dummdidumm Yeah making the extension isomorphic is a great idea, I can give a hand if you would like. Two points i mentioned earlier:
stuff I would change in the extension:
re esbuild, the speed is great for development but I believe anything it can do can be ported to rollup afterwards (why btw? bundle size should be smaller with rollup I guess) |
Just leaving a note to microsoft/monaco-editor#1745 |
Reviving this thread, since recently I been working on svelte-language-server-web, which is nearly fully functional and could potentially be adapted for VSCode Web. My package is based on the great work by @asafamr, so major credits go to him! Thank you, btw! Working on a write up for @dummdidumm to go over the changes made and the steps taken to get this to work. |
Github.dev doesn't have syntax highlighting of svelte files by default. While it does allow installing extensions, but svelte for vscode shows its not compatible with vscode-web
While enviroments like codesandbox does support svelte syntax highlighting and other language features but they were using the old jamesbirtles.svelte-vscode extension to support svelte source. But this extension is also not available in github.dev as it was removed from vscode marketplace
So is it possible to support the latest svelte for vscode extension to work in web enviroments for vs code like github.dev and github1s ?
The text was updated successfully, but these errors were encountered: