diff options
Diffstat (limited to 'crates/ra_ide_api_light/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api_light/src/lib.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/crates/ra_ide_api_light/src/lib.rs b/crates/ra_ide_api_light/src/lib.rs index 9dd72701d..17044270c 100644 --- a/crates/ra_ide_api_light/src/lib.rs +++ b/crates/ra_ide_api_light/src/lib.rs | |||
@@ -3,7 +3,7 @@ | |||
3 | //! This usually means functions which take syntax tree as an input and produce | 3 | //! This usually means functions which take syntax tree as an input and produce |
4 | //! an edit or some auxiliary info. | 4 | //! an edit or some auxiliary info. |
5 | 5 | ||
6 | pub mod assists; | 6 | pub mod formatting; |
7 | mod extend_selection; | 7 | mod extend_selection; |
8 | mod folding_ranges; | 8 | mod folding_ranges; |
9 | mod line_index; | 9 | mod line_index; |
@@ -14,10 +14,15 @@ mod test_utils; | |||
14 | mod join_lines; | 14 | mod join_lines; |
15 | mod typing; | 15 | mod typing; |
16 | mod diagnostics; | 16 | mod diagnostics; |
17 | pub(crate) mod formatting; | 17 | |
18 | #[derive(Debug)] | ||
19 | pub struct LocalEdit { | ||
20 | pub label: String, | ||
21 | pub edit: ra_text_edit::TextEdit, | ||
22 | pub cursor_position: Option<TextUnit>, | ||
23 | } | ||
18 | 24 | ||
19 | pub use self::{ | 25 | pub use self::{ |
20 | assists::LocalEdit, | ||
21 | extend_selection::extend_selection, | 26 | extend_selection::extend_selection, |
22 | folding_ranges::{folding_ranges, Fold, FoldKind}, | 27 | folding_ranges::{folding_ranges, Fold, FoldKind}, |
23 | line_index::{LineCol, LineIndex}, | 28 | line_index::{LineCol, LineIndex}, |