hide atom edits a bit

This commit is contained in:
Aleksey Kladov 2018-12-21 11:24:16 +03:00
parent 164d53b22f
commit 0063f03e86
5 changed files with 24 additions and 12 deletions

View file

@ -520,7 +520,7 @@ impl SourceChange {
pub(crate) fn from_local_edit(file_id: FileId, label: &str, edit: LocalEdit) -> SourceChange {
let file_edit = SourceFileEdit {
file_id,
edits: edit.edit.into_atoms(),
edit: edit.edit,
};
SourceChange {
label: label.to_string(),

View file

@ -20,7 +20,7 @@ use std::{fmt, sync::Arc};
use rustc_hash::FxHashMap;
use ra_syntax::{SourceFileNode, TextRange, TextUnit};
use ra_text_edit::AtomTextEdit;
use ra_text_edit::TextEdit;
use rayon::prelude::*;
use relative_path::RelativePathBuf;
@ -167,7 +167,7 @@ pub struct SourceChange {
#[derive(Debug)]
pub struct SourceFileEdit {
pub file_id: FileId,
pub edits: Vec<AtomTextEdit>,
pub edit: TextEdit,
}
#[derive(Debug)]