aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/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_db/src
parent414576fb3059c8431f32a5bbe8fa117d4f3d83b7 (diff)
Add initial_contents field for CreateFile
Diffstat (limited to 'crates/ide_db/src')
-rw-r--r--crates/ide_db/src/source_change.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_db/src/source_change.rs b/crates/ide_db/src/source_change.rs
index e87d98dad..10c0abdac 100644
--- a/crates/ide_db/src/source_change.rs
+++ b/crates/ide_db/src/source_change.rs
@@ -44,7 +44,7 @@ impl From<Vec<SourceFileEdit>> for SourceChange {
44 44
45#[derive(Debug, Clone)] 45#[derive(Debug, Clone)]
46pub enum FileSystemEdit { 46pub enum FileSystemEdit {
47 CreateFile { dst: AnchoredPathBuf }, 47 CreateFile { dst: AnchoredPathBuf, initial_contents: String },
48 MoveFile { src: FileId, dst: AnchoredPathBuf }, 48 MoveFile { src: FileId, dst: AnchoredPathBuf },
49} 49}
50 50