aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
authorDaiki Ihara <[email protected]>2020-12-17 13:09:55 +0000
committerDaiki Ihara <[email protected]>2020-12-21 06:55:40 +0000
commit7a2eebde22b1013b73706a11c4a89e969c36ed2b (patch)
treeee9e1e41fb6821745b9747bfa347500945251b09 /crates/ide/src
parent414576fb3059c8431f32a5bbe8fa117d4f3d83b7 (diff)
Add initial_contents field for CreateFile
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/diagnostics/fixes.rs1
1 files changed, 1 insertions, 0 deletions
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 {
40 anchor: self.file.original_file(sema.db), 40 anchor: self.file.original_file(sema.db),
41 path: self.candidate.clone(), 41 path: self.candidate.clone(),
42 }, 42 },
43 initial_contents: "".to_string(),
43 } 44 }
44 .into(), 45 .into(),
45 unresolved_module.syntax().text_range(), 46 unresolved_module.syntax().text_range(),