mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Remove unused cursor positions
This commit is contained in:
parent
42dd0ce51f
commit
4fdb1eac08
3 changed files with 3 additions and 8 deletions
|
@ -4,7 +4,7 @@
|
|||
//! It can be viewed as a dual for `AnalysisChange`.
|
||||
|
||||
use ra_db::{FileId, FilePosition, RelativePathBuf, SourceRootId};
|
||||
use ra_text_edit::{TextEdit, TextSize};
|
||||
use ra_text_edit::TextEdit;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct SourceChange {
|
||||
|
@ -109,7 +109,6 @@ pub enum FileSystemEdit {
|
|||
pub struct SingleFileChange {
|
||||
pub label: String,
|
||||
pub edit: TextEdit,
|
||||
pub cursor_position: Option<TextSize>,
|
||||
}
|
||||
|
||||
impl SingleFileChange {
|
||||
|
@ -118,7 +117,7 @@ impl SingleFileChange {
|
|||
label: self.label,
|
||||
source_file_edits: vec![SourceFileEdit { file_id, edit: self.edit }],
|
||||
file_system_edits: Vec::new(),
|
||||
cursor_position: self.cursor_position.map(|offset| FilePosition { file_id, offset }),
|
||||
cursor_position: None,
|
||||
is_snippet: false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue