Xtext VS Code example
This is a simple example showing the Xtext integration for VS Code based on the Microsoft Language Server Protocol.
The base is following simple grammar
'Hello' name=ID ('from' from=[Greeting])? '!';
A typical example model would look like (Open a new folder in VSCode and create the files)
Hello VSCode from Xtext!
Hello ThisFile from Other!
/* this is a definition in another file */
The Xtext integration supports typical Xtext and Language Server features like
- Syntax Highlighting
- Goto Definition / Find References
- Mark Occurrences
- Open Symbol
A introductory article can be found here