[Feature] LSP integrations
I'm intending on integrating the LSP through compiling server provisioned through lsp85 into wasm. lsp85 is under development but it is soon to be complete.
Goals:
- [x] Add features for suggestion.
- [x] Write bindings for functions in WASM
- [ ] Add features for hover.
- [x] Refactor lsp submodule to work as a dependency.
- [ ] Integrate lsp with web workers.
@debjitbis08 Hey, We're kind of done with suggestion for instructions, we'll be handling the panics with results and populating the instructions, we'll be done with it, for integrations we're expecting the use of WASM, and we'll be trying to get a webworker working for it.
But, when working with the webworkers, how will the editor will interact with the LSP?, We have a limited options, but I think a tcp channel could work, but I'm not sure.
But, when working with the webworkers, how will the editor will interacting with the LSP?, We have a limited options, but I think a tcp channel could work, but I'm not sure.
Please check out https://github.com/codemirror/lsp-client
We would be running the module in a web worker, and use standard ways to communicate with webworker. I don't if this will work, but we need to try it.
Also, submodule is not a nice way to integrate the LSP into the project. You need to either publish the package then install it as a dependency in Sim8085 or we need to include all the code in this project itself.
Okay, we'll try to publish the library and create a dependency for it, if not, we'll just add the code to the repository also we'll get the integrations with webworker to work soon then. :+1:
Hey @debjitbis08 , We had our exams so had to delay this a bit, will work on getting the webworker ready by this week. I've just added our code as a part of sim8085.