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
Auto merge of #15681 - Tyrubias:custom_target_dir, r=Veykril
Add config option to use `rust-analyzer` specific target dir
Adds a Rust Analyzer configuration option to set a custom target directory for builds. This is a workaround for Rust Analyzer blocking debug builds while running `cargo check`. This change should close#6007.
This is my first time contributing to this project, so any feedback regarding best practices that I'm not aware of are greatly appreciated! Thanks to all the maintainers for their hard work on this project and reviewing contributions.
Copy file name to clipboardExpand all lines: editors/code/package.json
+15
Original file line number
Diff line number
Diff line change
@@ -1488,6 +1488,21 @@
1488
1488
"type": "string"
1489
1489
}
1490
1490
},
1491
+
"rust-analyzer.rust.analyzerTargetDir": {
1492
+
"markdownDescription": "Optional path to a rust-analyzer specific target directory.\nThis prevents rust-analyzer's `cargo check` from locking the `Cargo.lock`\nat the expense of duplicating build artifacts.\n\nSet to `true` to use a subdirectory of the existing target directory or\nset to a path relative to the workspace to use that path.",
1493
+
"default": null,
1494
+
"anyOf": [
1495
+
{
1496
+
"type": "null"
1497
+
},
1498
+
{
1499
+
"type": "boolean"
1500
+
},
1501
+
{
1502
+
"type": "string"
1503
+
}
1504
+
]
1505
+
},
1491
1506
"rust-analyzer.rustc.source": {
1492
1507
"markdownDescription": "Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private\nprojects, or \"discover\" to try to automatically find it if the `rustc-dev` component\nis installed.\n\nAny project which uses rust-analyzer with the rustcPrivate\ncrates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.\n\nThis option does not take effect until rust-analyzer is restarted.",
0 commit comments