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