diff options
Diffstat (limited to 'ARCHITECTURE.md')
-rw-r--r-- | ARCHITECTURE.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 2c0da0665..8602de56d 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md | |||
@@ -178,17 +178,20 @@ VS Code plugin | |||
178 | 178 | ||
179 | To try out VS Code extensions, run `cargo install-code`. This installs both the | 179 | To try out VS Code extensions, run `cargo install-code`. This installs both the |
180 | `ra_lsp_server` binary and the VS Code extension. To install only the binary, use | 180 | `ra_lsp_server` binary and the VS Code extension. To install only the binary, use |
181 | `cargo install --path crates/ra_lsp_server --force` | 181 | `cargo install-lsp` (shorthand for `cargo install --path crates/ra_lsp_server --force`) |
182 | 182 | ||
183 | To see logs from the language server, set `RUST_LOG=info` env variable. To see | 183 | To see logs from the language server, set `RUST_LOG=info` env variable. To see |
184 | all communication between the server and the client, use | 184 | all communication between the server and the client, use |
185 | `RUST_LOG=gen_lsp_server=debug` (this will print quite a bit of stuff). | 185 | `RUST_LOG=gen_lsp_server=debug` (this will print quite a bit of stuff). |
186 | 186 | ||
187 | There's `Status of rust-analyzer` command which prints common high-level debug info. | 187 | There's `rust-analyzer: status` command which prints common high-level debug |
188 | info. In particular, it prints info about memory usage of various data | ||
189 | structures, and, if compiled with jemalloc support (`cargo jinstall-lsp` or | ||
190 | `cargo install --path crates/ra_lsp_server --force --features jemalloc`), includes | ||
191 | statistic about the heap. | ||
188 | 192 | ||
189 | To run tests, just `cargo test`. | 193 | To run tests, just `cargo test`. |
190 | 194 | ||
191 | To work on the VS Code extension, launch code inside `editors/code` and use `F5` to | 195 | To work on the VS Code extension, launch code inside `editors/code` and use `F5` to |
192 | launch/debug. To automatically apply formatter and linter suggestions, use `npm | 196 | launch/debug. To automatically apply formatter and linter suggestions, use `npm |
193 | run fix`. | 197 | run fix`. |
194 | |||