VS Code
The extension comes with the Node.js build of the server, so it needs no Java. It is used for files that end in
.dsl.
Install
Install dsl-lang from the Marketplace, or from a terminal:
code --install-extension dsl-lang.dsl-language
Settings
| Setting | |
|---|---|
dsl.server.command | The command that starts another build of the language server, such as a native executable or the jar. |
dsl.trace.server | Shows the messages between VS Code and the language server in the DSL output. |
settings.json
{
"dsl.server.command": ["dsl-lsp"]
}
Build it yourself
From a checkout of the repository:
./gradlew :server:vscodeServer
cd editors/vscode && npm install && npm run build
code --install-extension editors/vscode/dsl.vsix
npm run build bundles the extension with esbuild into build/extension.js and packages it with the server as
dsl.vsix. To try it without installing it, run npm run esbuild, then open editors/vscode in VS Code and
press F5.