Run SourceKit-LSP in Docker/Vagrant

windows
sourcekit
docker
(Satish) #1

You can use VSCode on Windows(or any os) while running and debugging swift on a Docker/Vagrant Ubuntu Server.
Also, same implementations can be used in Cloud IDE's (Che or theia)

Possible Solutions:

  1. Using TCP/IPC (VSCode Langauge Client's NodeModule, not Sure Requires more Reserch)
    -Sourcegraph runs LSP servers as a remote service using plain old TCP.
    -https://github.com/Microsoft/vscode-languageserver-node/blob/release/server/5.3.0-next.1/client/src/main.ts#L278
  2. SSH
  3. Using the vagrant-exec extension to execute LSP commands in Ubuntu-Swift-Vagrant

@blangmuir, @krzyzanowskim,

(Ben Langmuir) #2

I've also used a host X11 (Xquartz on macOS) with the application running in Docker.