An example demonstrating how to implement a Language Server in WebAssembly and run it in VS Code.
A simple language server that has a dummy got definition method and response to a custom message.
To run the sample the following tool chains need to be installed
- Run
npm installin this folder. This installs all necessary npm modules. - Open VS Code on this folder.
- Execute the launch config
Run Example.
As a pre-requisite follow the instructions here to generate necessary certificate to side load the extension into vscode.dev or insiders.vscode.dev.
Then compile the extension for the Web by running npm run esbuild, start a local extension server using npm run serve, open vscode.dev or insiders.vscode.dev in a browser and execute the command Install Extension from Location. As a location use https://localhost:5000.