Skip to content

Example project for connecting the Monaco Editor with a Xtext language server

Notifications You must be signed in to change notification settings

mister-walter/composer-language-server

Repository files navigation

Composer Language Server

A basic example project for connecting the Monaco Editor with an own Xtext language server.

Getting started

  1. Clone project
  2. Import as Gradle project into Eclipse
  3. Open command line in project folder and run following commands:
.\gradlew.bat clean build
cd monaco-editor-lsp-example
npm install
  1. Run the main-method in the class RunWebSocketServer3.xtend in the subproject in Eclipse. Alternatively, cd into com.novomind.language.server.expression.websockets and run ..\gradlew.bat run.
  2. On the command line start the frontend with the Monaco Editor:
npm run serv

After that your browser will open up localhost:8080 with a running Monaco Editor which is connected with the port 4389. See the network tab in the Chrome developer tools for more information regarding the messages which are sent between the client and the server.

About

Example project for connecting the Monaco Editor with a Xtext language server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published