- package server side code with
mvn clean package - goto
clientdirectory - issue
npm install - issue
code .to start VSCode in that directory - inside VSCode, select
Run and Debug(Ctrl+Shift+D) and then startRun Extension - a new
Extension Development Hostwindow will appear, withmvelextension enabled - to "debug" server-side event, add
server.getClient().showMessage(new MessageParams(MessageType.Info, {text}));in server-side code
- package server side code with
mvn clean package - start server with
Mvel3LspTCPLauncherfrom IDE on debug mode; this will start the LSP-server listening on port9925 - goto
clientdirectory - issue
npm install - issue
code .to start VSCode in that directory - inside VSCode, select
Run and Debug(Ctrl+Shift+D) and then startDebug Extension - the extensions will establish a connection to the server running at port
9925 - a new
Extension Development Hostwindow will appear, withmvelextension enabled - to "debug" server-side event, add breakpoints in server-side code
Under client directory, run:
npm install
npm run pack:devvsix file will be generated in dist directory.
For server-side tests, run mvn test in the root directory.
For client-side tests, goto client directory and run:
npm install
npm testEdit mvel3-completion/src/test/resources/logging.properties for com.vmware.antlr4c3.level to FINE. (But revisit when upgrading antlr4-c3 version, as the logging library may have changed.)
mvel3-lsp-server/src/main/resources/logback.xml is included in mvel3-lsp-server-jar-with-dependencies.jar, so logs/mvel3-lsp-server.log is created under the current working directory. Confirmed with unit tests and actual VSCODE extension run. However npm test does not seem to create the log file; need to investigate further.