Complete example for VsCode Custom language support Extension
% mvn clean install
% cd VsCodeDemo
% npm install
It generates
- 'node_modules'
- 'out'
- package-lock.json
and makes possible to run/debug the extension
% code .
F5
% npm install -g yo generator-code
% yo code
% rm -rf node_modules
% rm -rf package-lock.json
% npm cache clean --force
- Install and configure antlr V4 https://www.antlr.org/index.html
- Install ANTLR4 grammar syntax support https://marketplace.visualstudio.com/items?itemName=mike-lischke.vscode-antlr4
- Check if parser-generation is enabled https://github.com/mike-lischke/vscode-antlr4/blob/master/doc/parser-generation.md
- In order to generate parser files with ANTLR4 Java must be installed on the system and be executable without an explicit path (install it via npm install antlr4ts). % npm install antlr4ts
https://github.com/eclipse/lsp4j/blob/main/Contributing.md#Eclipse
- Install gradle https://gradle.org/install/
- Install Buildship plugin, gradle, xtend