Quick developer instructions.
- a modern version of Node.js with npm
- really, that's it
Install dependencies with npm i.
Create a resources directory and put WebDSL LSP server JAR (webdsl-lsp-1.0.0.jar) there (the recommended way is to create a soft symlink to app/build/libs/webdsl-lsp-1.0.0.jar in your local copy of WebDSL LSP server; this way, you don't have to copy the JAR every time you rebuild the LSP server).
Run by starting the "Run Extension" task from "Run and Debug" tab in VS Code.
Might be useful if you want to e.g. debug the WebDSL LSP server.
Start the development version of the server on a fixed port (e.g. 1337).
Replace the following line in function activate in extension.ts:
const port = await spawnLanguageServer(context);with:
const port = 1337;Then, run the extension as described above.
Install the vsce tool globally on your machine (npm i -g @vscode/vsce).
Then, run vsce package --skip-license - webdslvscodeplugin-0.0.1.vsix should be created.
To install the extension from this package, run {code,codium} --install-extension webdslvscodeplugin-0.0.1.vsix.
This should include any errors generated by the LSP server.
Go to OUTPUT tab of the terminal dock (open with ctrl+shift+). Select webdslLanguageclientoutput. SelectDebug` log level (using the gearbox icon).