You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/rust_analyzer.md
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,11 @@ Re-runnable at any time. Global flags work on any subcommand.
75
75
|`--workspace <path>`| Workspace root. Defaults to `$BUILD_WORKSPACE_DIRECTORY` (set by `bazel run`). |
76
76
|`--skip-proc-macro-server`| Don't manage the proc-macro key. |
77
77
|`--skip-rustfmt`| Don't manage the formatter key (use host rustfmt). |
78
-
|`--per-package-workspaces`| Opt in to per-package workspace splitting (see below). |
78
+
|`--per-package-workspaces` / `--no-per-package-workspaces`| Opt this developer in/out of per-package workspace splitting (see below). |
79
+
|`--clippy` / `--no-clippy`| Opt this developer in/out of running clippy on save and streaming its diagnostics alongside rustc's. |
80
+
|`--clean`| Delete `<launcher-dir>/cache/` before running the rest of setup. See Troubleshooting. |
81
+
82
+
The `--clippy` and `--per-package-workspaces` toggles are **per-user**: they mutate `<launcher-dir>/user_config.json` (gitignored) instead of the shared committed settings file. Two developers on the same workspace can hold different preferences without touching the checked-in configuration. Editing `user_config.json` by hand works too.
79
83
80
84
The `vscode` subcommand adds:
81
85
@@ -102,14 +106,13 @@ The `vscode` subcommand adds:
102
106
### Symbols / deps look wrong
103
107
104
108
Restart rust-analyzer (or save a `BUILD` file). If that doesn't fix
105
-
it, clear the discovery cache and try again:
109
+
it, re-run setup with `--clean` to nuke the discovery cache:
0 commit comments