joe-re / sql-language-server

SQL Language Server
MIT License
695 stars 64 forks source link

Support running server in webworker? #217

Open AntonOfTheWoods opened 1 year ago

AntonOfTheWoods commented 1 year ago

It would be great to be able to support sqlite3 wasm running entirely in the browser. My understanding is that everything is there for supporting and consuming language servers in webworkers (like this or this, so it would seem that at least a very large subset of the functionality could be done in a webworker. Now that all major browsers support the sync filehandle API in webworkers, the changes would probably be very simple, just a matter of adding an abstraction layer between the server and the underlying fs (so maybe even just adding a layer for fs, path, etc. calls).

Or maybe I missed it and this is already possible? If not, is there any interest? Should I have a try?

Josef-Friedrich commented 1 year ago

I am also looking for exactly this feature

Josef-Friedrich commented 1 year ago

A demo with a minimal JSON Language Server in Web Worker. Everything runs in a browser.