Skip to content

Setup Visual Studio Code for development of DSP-API

To have full functionality, the Scala Metals plugin should be installed.

Additionally, a number of plugins can be installed for convenience, but are not required. Those include but are by no means limited to: - Docker - to attach to running docker containers - Stardog RDF grammar - TTL syntax highlighting - Lua - REST client - ...


As a formatter, we use Scalafmt. Metals automatically recognizes the formatting configuration in the .scalafmt.conf file in the root directory. VSCode should be configured so that it austomatically formats (e.g. on file saved).

Running Tests

The tests can be run through make commands or through SBT. The most convenient way to run the tests is through VSCode. Metals recognizes scalatest suits and lets you run them in the text explorer:

Tests in VSCode

Or with the setting "metals.testUserInterface": "Code Lenses" directly in the text:

Tests in VSCode with Codelens Enabled


It is currently not possible to start the stack in debug mode.

Tests can be run in debug mode by running them as described above but choosing debug test instead of test.

Last update: 2022-05-25