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/src/diagnostics') 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