about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crates/ide-db/src/rename.rs2
-rw-r--r--crates/ide/src/rename.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide-db/src/rename.rs b/crates/ide-db/src/rename.rs
index 9e17666c903..032b8338ab8 100644
--- a/crates/ide-db/src/rename.rs
+++ b/crates/ide-db/src/rename.rs
@@ -81,7 +81,7 @@ impl Definition {
             // Can we not rename non-local items?
             // Then bail if non-local
             if !rename_external && !krate.origin(sema.db).is_local() {
-                bail!("Cannot rename a non-local definition. Set `renameExternalItems` to `true` to allow renaming for this item.")
+                bail!("Cannot rename a non-local definition as the config for it is disabled")
             }
         }
 
diff --git a/crates/ide/src/rename.rs b/crates/ide/src/rename.rs
index 0446b4a4b64..9fce4bb0f82 100644
--- a/crates/ide/src/rename.rs
+++ b/crates/ide/src/rename.rs
@@ -2636,7 +2636,7 @@ pub struct S;
 //- /main.rs crate:main deps:lib new_source_root:local
 use lib::S$0;
 "#,
-            "error: Cannot rename a non-local definition. Set `renameExternalItems` to `true` to allow renaming for this item.",
+            "error: Cannot rename a non-local definition as the config for it is disabled",
             false,
         );
 
@@ -2663,7 +2663,7 @@ use core::hash::Hash;
 #[derive(H$0ash)]
 struct A;
             "#,
-            "error: Cannot rename a non-local definition. Set `renameExternalItems` to `true` to allow renaming for this item.",
+            "error: Cannot rename a non-local definition as the config for it is disabled",
             false,
         );
     }