mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
fix SourceFileEdit name
This commit is contained in:
parent
f897de5b78
commit
aa628f4749
3 changed files with 6 additions and 6 deletions
|
@ -25,7 +25,7 @@ use crate::{
|
|||
db,
|
||||
symbol_index::{SymbolIndex, SymbolsDatabase, LibrarySymbolsQuery},
|
||||
AnalysisChange, RootChange, Cancelable, CrateId, Diagnostic, FileId,
|
||||
FileSystemEdit, FilePosition, Query, SourceChange, SourceFileNodeEdit,
|
||||
FileSystemEdit, FilePosition, Query, SourceChange, SourceFileEdit,
|
||||
ReferenceResolution,
|
||||
};
|
||||
|
||||
|
@ -518,7 +518,7 @@ impl AnalysisImpl {
|
|||
|
||||
impl SourceChange {
|
||||
pub(crate) fn from_local_edit(file_id: FileId, label: &str, edit: LocalEdit) -> SourceChange {
|
||||
let file_edit = SourceFileNodeEdit {
|
||||
let file_edit = SourceFileEdit {
|
||||
file_id,
|
||||
edits: edit.edit.into_atoms(),
|
||||
};
|
||||
|
|
|
@ -159,13 +159,13 @@ impl AnalysisHost {
|
|||
#[derive(Debug)]
|
||||
pub struct SourceChange {
|
||||
pub label: String,
|
||||
pub source_file_edits: Vec<SourceFileNodeEdit>,
|
||||
pub source_file_edits: Vec<SourceFileEdit>,
|
||||
pub file_system_edits: Vec<FileSystemEdit>,
|
||||
pub cursor_position: Option<FilePosition>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct SourceFileNodeEdit {
|
||||
pub struct SourceFileEdit {
|
||||
pub file_id: FileId,
|
||||
pub edits: Vec<AtomTextEdit>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue