Skip to content

Commit

Permalink
docs: update kcl language server build scripts and docs
Browse files Browse the repository at this point in the history
Signed-off-by: Peefy <[email protected]>
  • Loading branch information
Peefy committed Jun 4, 2024
1 parent 2d6e7c1 commit 4df6ef7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ RUN_IN_DOCKER+=-w /root/kclvm ${BUILD_IMAGE}
build:
${PWD}/run.sh -a build

.PHONY: build-lsp
build-lsp:
make -C ./kclvm build-lsp

.PHONY: release
release:
${PWD}/run.sh -a release
Expand Down
4 changes: 3 additions & 1 deletion docs/dev_guide/6.languager_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ For Windows
Alternatively, you can use cargo to build kcl-language-server:

```bash
cd kclvm/tools/src/LSP && cargo build
make build-lsp
```

The built language server will be at `kclvm/target/release/kcl-language-server`

1. Add kcl-language-server to PATH

Add the `kcl-language-server` to PATH verify that:
Expand Down
3 changes: 3 additions & 0 deletions kclvm/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ fix:
build-wasm:
cargo build --target=wasm32-wasi --release

build-lsp:
cargo build --release --manifest-path tools/src/LSP/Cargo.toml

# ------------------------
# Tests
# ------------------------
Expand Down

0 comments on commit 4df6ef7

Please sign in to comment.