Skip to content

Commit b2e2745

Browse files
darthorimarintellij-monorepo-bot
authored andcommitted
[lsp] add a script to build vscode extension locally
GitOrigin-RevId: 69b64fb42d9d0f080dd54ac20281ce5ccbe3fa32
1 parent 52be206 commit b2e2745

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

kotlin-vscode/buildLocally.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
echo Make sure that you have built the language-server.kotlin-lsp.zip by running org.jetbrains.ls.building.BuildLSP.main
6+
7+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8+
RELATIVE_FILE_PATH="../../../out/jps-artifacts/language_server_kotlin_lsp_zip/language-server.kotlin-lsp.zip"
9+
LSP_ZIP_PATH="$(cd "$SCRIPT_DIR" && cd "$(dirname "$RELATIVE_FILE_PATH")" && echo "$(pwd)/$(basename "$RELATIVE_FILE_PATH")")"
10+
export LSP_ZIP_PATH
11+
12+
if [ ! -e "$LSP_ZIP_PATH" ]; then
13+
echo "language-server.kotlin-lsp.zip not exist. Exiting"
14+
exit 1
15+
fi
16+
17+
echo "Using $LSP_ZIP_PATH"
18+
19+
npx --yes vsce package --baseContentUrl=https://github.com/Kotlin/kotlin-lsp/tree/main/kotlin-vscode

0 commit comments

Comments
 (0)