aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_db/src/source_change.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-06 14:26:40 +0100
committerAleksey Kladov <[email protected]>2020-05-06 14:43:47 +0100
commitfdd4df97ba5ce1f59abf9e945052fc6f3e077c3a (patch)
tree44ebb47b92d71a5e30cb469988ff1b490ca856d8 /crates/ra_ide_db/src/source_change.rs
parent1116c9a0e9992d0dea8dac87de95c8a74c093cff (diff)
Use SourceChange for assists
Diffstat (limited to 'crates/ra_ide_db/src/source_change.rs')
-rw-r--r--crates/ra_ide_db/src/source_change.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide_db/src/source_change.rs b/crates/ra_ide_db/src/source_change.rs
index 4dd01b312..af81a91a4 100644
--- a/crates/ra_ide_db/src/source_change.rs
+++ b/crates/ra_ide_db/src/source_change.rs
@@ -6,7 +6,7 @@
6use ra_db::{FileId, FilePosition, RelativePathBuf, SourceRootId}; 6use ra_db::{FileId, FilePosition, RelativePathBuf, SourceRootId};
7use ra_text_edit::{TextEdit, TextSize}; 7use ra_text_edit::{TextEdit, TextSize};
8 8
9#[derive(Debug)] 9#[derive(Debug, Clone)]
10pub struct SourceChange { 10pub struct SourceChange {
11 /// For display in the undo log in the editor 11 /// For display in the undo log in the editor
12 pub label: String, 12 pub label: String,
@@ -90,13 +90,13 @@ impl SourceChange {
90 } 90 }
91} 91}
92 92
93#[derive(Debug)] 93#[derive(Debug, Clone)]
94pub struct SourceFileEdit { 94pub struct SourceFileEdit {
95 pub file_id: FileId, 95 pub file_id: FileId,
96 pub edit: TextEdit, 96 pub edit: TextEdit,
97} 97}
98 98
99#[derive(Debug)] 99#[derive(Debug, Clone)]
100pub enum FileSystemEdit { 100pub enum FileSystemEdit {
101 CreateFile { source_root: SourceRootId, path: RelativePathBuf }, 101 CreateFile { source_root: SourceRootId, path: RelativePathBuf },
102 MoveFile { src: FileId, dst_source_root: SourceRootId, dst_path: RelativePathBuf }, 102 MoveFile { src: FileId, dst_source_root: SourceRootId, dst_path: RelativePathBuf },