minor: fix typos

This commit is contained in:
wtj 2023-04-27 12:21:23 +08:00
parent 237ffa3997
commit c533ac3573
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
//! applied. So, the relation between syntax and HIR is many-to-one. //! applied. So, the relation between syntax and HIR is many-to-one.
//! //!
//! HIR is the public API of the all of the compiler logic above syntax trees. //! HIR is the public API of the all of the compiler logic above syntax trees.
//! It is written in "OO" style. Each type is self contained (as in, it knows it's //! It is written in "OO" style. Each type is self contained (as in, it knows its
//! parents and full context). It should be "clean code". //! parents and full context). It should be "clean code".
//! //!
//! `hir_*` crates are the implementation of the compiler logic. //! `hir_*` crates are the implementation of the compiler logic.

View file

@ -589,7 +589,7 @@ Try **rust-analyzer: Show RA Version** in VS Code (using **Command Palette** fea
If the date is more than a week ago, it's better to update rust-analyzer version. If the date is more than a week ago, it's better to update rust-analyzer version.
The next thing to check would be panic messages in rust-analyzer's log. The next thing to check would be panic messages in rust-analyzer's log.
Log messages are printed to stderr, in VS Code you can see then in the `Output > Rust Analyzer Language Server` tab of the panel. Log messages are printed to stderr, in VS Code you can see them in the `Output > Rust Analyzer Language Server` tab of the panel.
To see more logs, set the `RA_LOG=info` environment variable, this can be done either by setting the environment variable manually or by using `rust-analyzer.server.extraEnv`, note that both of these approaches require the server to be restarted. To see more logs, set the `RA_LOG=info` environment variable, this can be done either by setting the environment variable manually or by using `rust-analyzer.server.extraEnv`, note that both of these approaches require the server to be restarted.
To fully capture LSP messages between the editor and the server, set `"rust-analyzer.trace.server": "verbose"` config and check To fully capture LSP messages between the editor and the server, set `"rust-analyzer.trace.server": "verbose"` config and check