about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorroife <roifewu@gmail.com>2024-12-25 22:24:22 +0800
committerroife <roifewu@gmail.com>2024-12-26 19:51:14 +0800
commitc8f29aad5e886a010a8175ee143e2feec9e46a35 (patch)
tree86172b2dbf7dd3e2558869809a562c6233b1e83f /src/tools
parentc17dea99ff72218508830fed48eb3c233fd2c11d (diff)
downloadrust-c8f29aad5e886a010a8175ee143e2feec9e46a35.tar.gz
rust-c8f29aad5e886a010a8175ee143e2feec9e46a35.zip
fix incorrect name for UpdateTest config
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs4
-rw-r--r--src/tools/rust-analyzer/docs/user/generated_config.adoc2
-rw-r--r--src/tools/rust-analyzer/editors/code/package.json2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs
index e240318a13a..0f8840a810c 100644
--- a/src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs
+++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs
@@ -248,7 +248,7 @@ config_data! {
         lens_run_enable: bool              = true,
         /// Whether to show `Update Test` lens. Only applies when
         /// `#rust-analyzer.lens.enable#` and `#rust-analyzer.lens.run.enable#` are set.
-        lens_update_test_enable: bool = true,
+        lens_updateTest_enable: bool = true,
 
         /// Disable project auto-discovery in favor of explicitly specified set
         /// of projects.
@@ -2134,7 +2134,7 @@ impl Config {
             run: *self.lens_enable() && *self.lens_run_enable(),
             debug: *self.lens_enable() && *self.lens_debug_enable(),
             update_test: *self.lens_enable()
-                && *self.lens_update_test_enable()
+                && *self.lens_updateTest_enable()
                 && *self.lens_run_enable(),
             interpret: *self.lens_enable() && *self.lens_run_enable() && *self.interpret_tests(),
             implementations: *self.lens_enable() && *self.lens_implementations_enable(),
diff --git a/src/tools/rust-analyzer/docs/user/generated_config.adoc b/src/tools/rust-analyzer/docs/user/generated_config.adoc
index c78d577fff4..fffbb94efab 100644
--- a/src/tools/rust-analyzer/docs/user/generated_config.adoc
+++ b/src/tools/rust-analyzer/docs/user/generated_config.adoc
@@ -814,7 +814,7 @@ Only applies when `#rust-analyzer.lens.enable#` is set.
 Whether to show `Run` lens. Only applies when
 `#rust-analyzer.lens.enable#` is set.
 --
-[[rust-analyzer.lens.update.test.enable]]rust-analyzer.lens.update.test.enable (default: `true`)::
+[[rust-analyzer.lens.updateTest.enable]]rust-analyzer.lens.updateTest.enable (default: `true`)::
 +
 --
 Whether to show `Update Test` lens. Only applies when
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json
index 2c7b129618b..426414becb3 100644
--- a/src/tools/rust-analyzer/editors/code/package.json
+++ b/src/tools/rust-analyzer/editors/code/package.json
@@ -2313,7 +2313,7 @@
             {
                 "title": "lens",
                 "properties": {
-                    "rust-analyzer.lens.update.test.enable": {
+                    "rust-analyzer.lens.updateTest.enable": {
                         "markdownDescription": "Whether to show `Update Test` lens. Only applies when\n`#rust-analyzer.lens.enable#` and `#rust-analyzer.lens.run.enable#` are set.",
                         "default": true,
                         "type": "boolean"