Skip to content

Changelog #94 #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions manual.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,15 @@ See https://github.com/rust-analyzer/rust-project.json-example for a small examp

You can set `RA_LOG` environmental variable to `rust_analyzer=info` to inspect how rust-analyzer handles config and project loading.

Note that calls to `cargo check` are disabled when using `rust-project.json` by default, so compilation errors and warnings will no longer be sent to your LSP client. To enable these compilation errors you will need to specify explicitly what command rust-analyzer should run to perform the checks using the `checkOnSave.overrideCommand` configuration. As an example, the following configuration explicitly sets `cargo check` as the `checkOnSave` command.

[source,json]
----
{ "rust-analyzer.checkOnSave.overrideCommand": ["cargo", "check", "--message-format=json"] }
----

The `checkOnSave.overrideCommand` requires the command specified to output json error messages for rust-analyzer to consume. The `--message-format=json` flag does this for `cargo check` so whichever command you use must also output errors in this format. See the <<Configuration>> section for more information.

== Security

At the moment, rust-analyzer assumes that all code is trusted.
Expand Down
44 changes: 44 additions & 0 deletions thisweek/_posts/2021-09-13-changelog-94.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
= Changelog #94
:sectanchors:
:page-layout: post

Commit: commit:516eb40ba5b9d20e59e98185d1b2fcba5599ef7a[] +
Release: release:2021-09-13[]

== Sponsors

**Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or
https://github.com/sponsors/rust-analyzer[GitHub Sponsors].

== New Features

* pr:10152[] (first contribution) quote raw identifier in completion:
+
image::https://user-images.githubusercontent.com/894305/132110362-c21b713d-acaf-4a6d-9749-ff812172cbce.gif[]
* pr:10162[] enable completions after `.` in some macros:
+
image::https://user-images.githubusercontent.com/308347/133029878-127e4022-999b-4a53-829a-16ad0e0723c0.gif[]
+
image::https://user-images.githubusercontent.com/308347/133030167-edc88366-ac46-491d-811e-d1cf533ba9f4.gif[]

== Fixes

* pr:10093[] (first contribution) fix `cargo` task filtering in Code workspaces.
* pr:10154[] (first contribution) complete `+#![recursion_limit = "N"]+` instead of `+#![recursion_limit = N]+`.
* pr:10157[] (first contribution) document enabling `flycheck` with `rust-project.json`.
* pr:10188[] (first contribution) add multi-token mapping support to runnables.
* pr:10180[] fix resolution of inherent array methods.
* pr:10177[] treat path dependencies like workspace members.
* pr:10193[] fix type mismatches with `panic!()` on Rust 1.55.
* pr:10174[] fix path display with `crate` and `super` prefixes.
* pr:10186[] configure `colorizedBracketPairs` for Code.
* pr:10202[] show correct `Sized` bounds on type param hover.
* pr:10212[] avoid a type inference panic on `BitSlice` methods.
* pr:10215[] use correct file for `decl_access` computation in `find_all_refs`.

== Internal Improvements

* pr:10165[] (first contribution) bump `tracing-tree` to avoid a `syn` dependency.
* pr:10206[] remove unused dependencies.
* pr:10168[] make name consistent with usage.
* pr:10169[] parser cleanup.