r-a: Use `python3 x.py` instead of `./x.py` (#1335)

This commit is contained in:
Noah Lev 2022-04-09 01:31:23 -07:00 committed by GitHub
parent f5f6b4f2be
commit 664d3c70c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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"
],