basex-lsp/README.md
2025-07-23 23:10:31 +01:00

21 lines
No EOL
800 B
Markdown

An attempt to write a language protocol server using BaseX features...
* `webapp/lsp` A BaseX LSP application with a WebSocket Jsonrpc API
* `webapp/static/ace` A html page using an Ace editor that connects to a BaseX LSP instance
## Uses
* https://github.com/mkslanc/ace-linters https://mkslanc.github.io/ace-linters/
* I needed `set NODE_OPTIONS=--max_old_space_size=8192` for build to complete
## notes
Using https://github.com/mkslanc/ace-linters https://mkslanc.github.io/ace-linters/
Make a websocket server for lsp on port 3000
https://mkslanc.github.io/ace-linters/websocket.html
http://localhost:3000/exampleServer
https://github.com/mkslanc/ace-linters/blob/c1b317e01299016ac7da6588361228637f4eac25/packages/demo/websockets-lsp/server/server.ts
https://www.jsonrpc.org/specification