Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #19949 from ChayimFriedman2/stabilize-json
fix: Stabilize the "JSON is not Rust" diagnostic
Chayim Refael Friedman 10 months ago
parent 6acff6c · parent 14cb64c · commit 9fc1b90
-rw-r--r--crates/ide-diagnostics/src/handlers/json_is_not_rust.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide-diagnostics/src/handlers/json_is_not_rust.rs b/crates/ide-diagnostics/src/handlers/json_is_not_rust.rs
index 87c9397fb7..bf7dddacd8 100644
--- a/crates/ide-diagnostics/src/handlers/json_is_not_rust.rs
+++ b/crates/ide-diagnostics/src/handlers/json_is_not_rust.rs
@@ -135,6 +135,7 @@ pub(crate) fn json_in_items(
"JSON syntax is not valid as a Rust item",
FileRange { file_id: vfs_file_id, range },
)
+ .stable()
.with_fixes(Some(vec![{
let mut scb = SourceChangeBuilder::new(vfs_file_id);
let scope = scb.make_import_scope_mut(import_scope);