language server protocol
| bundles | ||
| data | ||
| docs | ||
| test | ||
| webapp | ||
| .dockerignore | ||
| .gitignore | ||
| compose.yaml | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| rollup.config.js | ||
Work in progress.
An attempt to write a Language Server Protocol server using XQuery 4.0 and the BaseX websocket feature.
Server
webapp/lspThe LSP implementation in XQuery using WebSockets for transport and the JSON-RPC 2.0 API for format.
Sample clients
webapp/static/codemirrorA test html page using the CodeMirror6 editor that connects to the BaseX LSP instancewebapp/static/aceA test html page using the Ace editor that connects to the 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=8192for build to complete -
or
node --max-old-space-size=8192 node_modules/webpack-dev-serve r/bin/webpack-dev-server.js
notes
java -cp org.eclipse.lemminx-uber.jar org.eclipse.lemminx.XMLServerSocketLauncher` 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