sim8085 icon indicating copy to clipboard operation
sim8085 copied to clipboard

[Feature] LSP integrations

Open shri-acha opened this issue 1 month ago • 4 comments

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.

shri-acha avatar Nov 28 '25 10:11 shri-acha

@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.

shri-acha avatar Dec 06 '25 15:12 shri-acha

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.

debjitbis08 avatar Dec 06 '25 15:12 debjitbis08

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:

shri-acha avatar Dec 06 '25 15:12 shri-acha

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.

shri-acha avatar Dec 17 '25 14:12 shri-acha