This repository is a fork of Eclipse LemMinX.
MI Language Server is a language specific implementation of the Language Server Protocol and can be used with any editor that supports the protocol, to offer good support for the MI (Synapse) Language.
The server is based on:
- Eclipse LSP4J, the Java binding for the Language Server Protocol.
- Xerces to manage XML Schema validation, completion and hover
- Clone this repository
- Open the folder in your terminal / command line
- Run
./mvnw clean verify
(OSX, Linux) ormvnw.cmd clean verify
(Windows) - After successful compilation you can find the resulting
org.eclipse.lemminx-uber.jar
in the folderorg.eclipse.lemminx/target
To debug the XML LS you can use XMLServerSocketLauncher:
- Run the XMLServerSocketLauncher in debug mode (e.g. in eclipse)
- Connect your client via socket port. Default port is 5008, but you can change it with start argument
--port
in step 1
Client connection example using Theia and TypeScript:
let socketPort = '5008'
console.log(`Connecting via port ${socketPort}`)
const socket = new net.Socket()
const serverConnection = createSocketConnection(socket,
socket, () => {
socket.destroy()
});
this.forward(clientConnection, serverConnection)
socket.connect(socketPort)