mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
hide atom edits a bit
This commit is contained in:
parent
164d53b22f
commit
0063f03e86
5 changed files with 24 additions and 12 deletions
|
@ -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(),
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue