r-a: Use `python3 x.py` instead of `./x.py` (#1335)
This commit is contained in:
parent
f5f6b4f2be
commit
664d3c70c0
|
|
@ -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`
|
a file. By default, `rust-analyzer` runs the `cargo check` and `rustfmt`
|
||||||
commands, but you can override these commands to use more adapted versions
|
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,
|
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
|
```JSON
|
||||||
{
|
{
|
||||||
"rust-analyzer.checkOnSave.overrideCommand": [
|
"rust-analyzer.checkOnSave.overrideCommand": [
|
||||||
"./x.py",
|
"python3",
|
||||||
|
"x.py",
|
||||||
"check",
|
"check",
|
||||||
"--json-output"
|
"--json-output"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue