Swift + SourceKit-LSP on Theia Cloud IDE

windows
linux
docker
(Satish) #1

Theia Swift Docker

How to use theiaide/theia-swift image?

At the moment Theia is still in the active development. It is recommended to use theiaide/theia-swift:next image to have a look at the current state.

This script pulls the image and runs Theia IDE on http://localhost:3000 with the current directory as a workspace.

docker run -it -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia-swift:next

You can pass additional arguments to Theia after the image name, for example to enable debugging:

docker run -it -p 3000:3000 --expose 9229 -p 9229:9229 -v "$(pwd):/home/project:cached" theiaide/theia-swift:next --inspect=0.0.0.0:9229

Image Variants

theiaide/theia-swift:latest

This image is based on the latest stable released version.

theiaide/theia-swift:<version>

This image is based on the given stable released version.

theiaide/theia-swift:next

This image is based on the nightly published version.

theiaide/theia-swift:<version>-next.<commit hash>

This image is based on the given nightly published version.

The active implementaton of sourcekit-lsp inside theia relies on unpublished VSCode extension.

Source can be found on https://github.com/theia-ide/theia-apps,
Active developement on https://github.com/satishbabariya/theia-swift-docker

5 Likes