From c93aa1d8c527fbd6248d266f1599e08d6b5d8645 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Thu, 9 Jul 2020 12:47:22 -0600 Subject: [PATCH] LSP working for Swift --- backend/src/langs.ts | 1 + scripts/docker-install-phase5.bash | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 7218030..da59d07 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -1028,6 +1028,7 @@ END main: "main.swift", compile: "swiftc main.swift", run: "./main", + lsp: "sourcekit-lsp", template: `print("Hello, world!") `, }, diff --git a/scripts/docker-install-phase5.bash b/scripts/docker-install-phase5.bash index 320c4e8..36c432a 100755 --- a/scripts/docker-install-phase5.bash +++ b/scripts/docker-install-phase5.bash @@ -119,6 +119,7 @@ gdown "https://drive.google.com/uc?export=download&id=1eE1-VuZz0gv-fITaGVT_r1Uun mkdir /opt/swift tar -xf swift.tar.gz -C /opt/swift --strip-components=2 ln -s /opt/swift/bin/swiftc /usr/bin/swiftc +ln -s /opt/swift/bin/sourcekit-lsp /usr/bin/sourcekit-lsp rm swift.tar.gz popd >/dev/null