diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-18 16:18:44 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-19 13:59:25 +0200 |
| commit | bc67726882cc368e6aa382ea97c616d666d9b11d (patch) | |
| tree | 01922dad35ccb4b6e28d0e4be5bf07abee53a80a | |
| parent | b0d7b526d96fc428123444d8852e6ab5674f809e (diff) | |
| download | rust-bc67726882cc368e6aa382ea97c616d666d9b11d.tar.gz rust-bc67726882cc368e6aa382ea97c616d666d9b11d.zip | |
Update rust-analyzer import assist config
| -rw-r--r-- | .vscode/settings.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json index cec110792ce..38ffef5ac99 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,9 @@ { // source for rustc_* is not included in the rust-src component; disable the errors about this "rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate", "unresolved-macro-call"], - "rust-analyzer.assist.importMergeBehavior": "last", + "rust-analyzer.assist.importGranularity": "module", + "rust-analyzer.assist.importEnforceGranularity": true, + "rust-analyzer.assist.importPrefix": "by_crate", "rust-analyzer.cargo.runBuildScripts": true, "rust-analyzer.linkedProjects": [ "./Cargo.toml", |
