Skip to content

Commit bc67726

Browse files
committed
Update rust-analyzer import assist config
1 parent b0d7b52 commit bc67726

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
// source for rustc_* is not included in the rust-src component; disable the errors about this
33
"rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate", "unresolved-macro-call"],
4-
"rust-analyzer.assist.importMergeBehavior": "last",
4+
"rust-analyzer.assist.importGranularity": "module",
5+
"rust-analyzer.assist.importEnforceGranularity": true,
6+
"rust-analyzer.assist.importPrefix": "by_crate",
57
"rust-analyzer.cargo.runBuildScripts": true,
68
"rust-analyzer.linkedProjects": [
79
"./Cargo.toml",

0 commit comments

Comments
 (0)