From 7a2eebde22b1013b73706a11c4a89e969c36ed2b Mon Sep 17 00:00:00 2001 From: Daiki Ihara Date: Thu, 17 Dec 2020 22:09:55 +0900 Subject: Add initial_contents field for CreateFile --- crates/ide/src/diagnostics/fixes.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ide') diff --git a/crates/ide/src/diagnostics/fixes.rs b/crates/ide/src/diagnostics/fixes.rs index e8b896623..d79f5c170 100644 --- a/crates/ide/src/diagnostics/fixes.rs +++ b/crates/ide/src/diagnostics/fixes.rs @@ -40,6 +40,7 @@ impl DiagnosticWithFix for UnresolvedModule { anchor: self.file.original_file(sema.db), path: self.candidate.clone(), }, + initial_contents: "".to_string(), } .into(), unresolved_module.syntax().text_range(), -- cgit v1.2.3 From 2b4a7848a89e788142a9b74f43a023a2e5c777b9 Mon Sep 17 00:00:00 2001 From: Daiki Ihara Date: Thu, 17 Dec 2020 22:10:41 +0900 Subject: Update test diagnostics in ide --- crates/ide/src/diagnostics.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ide') diff --git a/crates/ide/src/diagnostics.rs b/crates/ide/src/diagnostics.rs index 049f808dc..3ad30f0c9 100644 --- a/crates/ide/src/diagnostics.rs +++ b/crates/ide/src/diagnostics.rs @@ -619,6 +619,7 @@ fn test_fn() { ), path: "foo.rs", }, + initial_contents: "", }, ], is_snippet: false, -- cgit v1.2.3