Skip to content

Commit

Permalink
r-a: Use python3 x.py instead of ./x.py (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
camelid authored Apr 9, 2022
1 parent f5f6b4f commit 664d3c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/building/suggested.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ You can also install the hook as a step of running `./x.py setup`!
a file. By default, `rust-analyzer` runs the `cargo check` and `rustfmt`
commands, but you can override these commands to use more adapted versions
of these tools when hacking on `rustc`. For example, for Visual Studio Code,
you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition below -->
you can write: <!-- date: 2022-04 --><!-- the date comment is for the edition below -->

```JSON
{
"rust-analyzer.checkOnSave.overrideCommand": [
"./x.py",
"python3",
"x.py",
"check",
"--json-output"
],
Expand Down

0 comments on commit 664d3c7

Please sign in to comment.