Coder Social home page Coder Social logo

rbirdwatcher / xtext-languageserver-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itemis/xtext-languageserver-example

0.0 0.0 0.0 595 KB

An Example for an Xtext Language Server

License: Eclipse Public License 1.0

Xtend 7.33% Java 87.94% Shell 0.26% TypeScript 4.03% JavaScript 0.44%

xtext-languageserver-example's Introduction

Xtext Visual Studio Code Example

This is an Example showing the Visual Studio Code Integration of Xtext using the Microsoft Language Server Protocol.

Build Status

Quickstart

Requires Visual Studio Code (VS Code) with version 1.4.0 or greater to be on the path as code and Java 8+ available as java.

  • Run ./gradlew startCode

This will start VS Code and after a few seconds load the demo folder of this repository.

Project Structure

  • vscode-extension (node based VS Code extension to run with a separate server using socket)
  • vscode-extension-self-contained (node based VS Code extension to run with a embedded server using process io)
  • org.xtext.example.mydsl (contains the dsl)
  • org.xtext.example.mydsl.ide (contains the dsl specific customizations of the Xtext language server)
  • org.xtext.example.mydsl.tests

Building in Details

  1. Make sure that java -version is executable and pointing to a Java 8+ JDK.
  2. Type code. If the command is not known, open VS Code and select View / Command Palette. Enter code and select to install code on the path.
  3. Run ./gradlew startCode to build the DSL and the VS Code extensions.

Scenario 1 (embedded server)

  1. Install the self-contained extension into VS Code using code --install-extension vscode-extension-self-contained/build/vscode/vscode-extension-self-contained-0.0.1.vsix
  2. Run a second instance of vscode on the demo folder code demo

Scenario 2 (client-only with separate server process)

  1. Run ./gradlew run or launch RunServer from Eclipse.
  2. Open vscode-extension in VS Code and F5 to launch new editor (you may need a Debug -> Start Debugging initally).
  3. Open folder demo in the new editor.

Build VS Code Extension Package manually (manually Gradle)

npm install -g vsce
cd vscode-extension
vsce package
cd ../vscode-extension-self-contained
vsce package

xtext-languageserver-example's People

Contributors

cdietrich avatar franzbecker avatar holgerschill avatar rbirdwatcher avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.