Add cargo jinstall-lsp as a shorthand to include jemalloc support

This commit is contained in:
DJMcNab 2019-01-29 17:02:06 +00:00
parent 48d2acb297
commit b42b7450a2
2 changed files with 6 additions and 4 deletions

View file

@ -5,6 +5,8 @@ gen-syntax = "run --package tools --bin tools -- gen-syntax"
gen-tests = "run --package tools --bin tools -- gen-tests" gen-tests = "run --package tools --bin tools -- gen-tests"
# Installs ra_lsp_server # Installs ra_lsp_server
install-lsp = "install --path crates/ra_lsp_server --force" install-lsp = "install --path crates/ra_lsp_server --force"
# Installs ra_lsp_server with the jemalloc feature
jinstall-lsp = "install --path crates/ra_lsp_server --force --features jemalloc"
# Installs the visual studio code extension # Installs the visual studio code extension
install-code = "run --package tools --bin tools -- install-code" install-code = "run --package tools --bin tools -- install-code"
# Formats the full repository or installs the git hook to do it automatically. # Formats the full repository or installs the git hook to do it automatically.

View file

@ -178,7 +178,7 @@ VS Code plugin
To try out VS Code extensions, run `cargo install-code`. This installs both the To try out VS Code extensions, run `cargo install-code`. This installs both the
`ra_lsp_server` binary and the VS Code extension. To install only the binary, use `ra_lsp_server` binary and the VS Code extension. To install only the binary, use
`cargo install --path crates/ra_lsp_server --force` `cargo install-lsp` (shorthand for `cargo install --path crates/ra_lsp_server --force`)
To see logs from the language server, set `RUST_LOG=info` env variable. To see To see logs from the language server, set `RUST_LOG=info` env variable. To see
all communication between the server and the client, use all communication between the server and the client, use
@ -186,12 +186,12 @@ all communication between the server and the client, use
There's `rust-analyzer: status` command which prints common high-level debug There's `rust-analyzer: status` command which prints common high-level debug
info. In particular, it prints info about memory usage of various data info. In particular, it prints info about memory usage of various data
structures, and, if compiled with jemalloc support (`cargo install --features structures, and, if compiled with jemalloc support (`cargo jinstall-lsp` or
jemalloc`), the summary statistic about the heap. `cargo install --path crates/ra_lsp_server --force --features jemalloc`), includes
statistic about the heap.
To run tests, just `cargo test`. To run tests, just `cargo test`.
To work on the VS Code extension, launch code inside `editors/code` and use `F5` to To work on the VS Code extension, launch code inside `editors/code` and use `F5` to
launch/debug. To automatically apply formatter and linter suggestions, use `npm launch/debug. To automatically apply formatter and linter suggestions, use `npm
run fix`. run fix`.