Unnamed repository; edit this file 'description' to name the repository.
doc: make example for workspace.discoverConfig actually work
rust-project requires {arg} these days. No good giving people bad information even if it's not crucial to documenting this.
Cormac Relf 4 months ago
parent a7eb8c0 · commit 7ee0643
-rw-r--r--crates/rust-analyzer/src/config.rs9
-rw-r--r--docs/book/src/configuration_generated.md5
2 files changed, 8 insertions, 6 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index c2f7ada8c8..2b7ade6c26 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -480,8 +480,8 @@ config_data! {
/// Enables automatic discovery of projects using [`DiscoverWorkspaceConfig::command`].
///
- /// [`DiscoverWorkspaceConfig`] also requires setting `progress_label` and `files_to_watch`.
- /// `progress_label` is used for the title in progress indicators, whereas `files_to_watch`
+ /// [`DiscoverWorkspaceConfig`] also requires setting `progressLabel` and `filesToWatch`.
+ /// `progressLabel` is used for the title in progress indicators, whereas `filesToWatch`
/// is used to determine which build system-specific files should be watched in order to
/// reload rust-analyzer.
///
@@ -490,9 +490,10 @@ config_data! {
/// "rust-analyzer.workspace.discoverConfig": {
/// "command": [
/// "rust-project",
- /// "develop-json"
+ /// "develop-json",
+ /// "{arg}"
/// ],
- /// "progressLabel": "rust-analyzer",
+ /// "progressLabel": "buck2/rust-project",
/// "filesToWatch": [
/// "BUCK"
/// ]
diff --git a/docs/book/src/configuration_generated.md b/docs/book/src/configuration_generated.md
index 58b6363345..a0738ca0e1 100644
--- a/docs/book/src/configuration_generated.md
+++ b/docs/book/src/configuration_generated.md
@@ -1623,9 +1623,10 @@ Below is an example of a valid configuration:
"rust-analyzer.workspace.discoverConfig": {
"command": [
"rust-project",
- "develop-json"
+ "develop-json",
+ "{arg}"
],
- "progressLabel": "rust-analyzer",
+ "progressLabel": "buck2/rust-project",
"filesToWatch": [
"BUCK"
]