diff options
author | Dmitry <[email protected]> | 2020-08-09 14:35:51 +0100 |
---|---|---|
committer | Dmitry <[email protected]> | 2020-08-09 14:39:32 +0100 |
commit | 8068302fefc75440b823f4bf1731a5f347d7c767 (patch) | |
tree | 251b967182e79bc82a58c2fb208c688f6152df1f /crates/ra_ide/src/lib.rs | |
parent | 1a43a0f63e0008787225abb6fb2baef97b6a39e0 (diff) | |
parent | 8a57afe5a4bfab40072a83f7dc4ca560bf860919 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r-- | crates/ra_ide/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index 4c4d9f6fa..0fede0d87 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs | |||
@@ -510,9 +510,10 @@ impl Analysis { | |||
510 | query: &str, | 510 | query: &str, |
511 | parse_only: bool, | 511 | parse_only: bool, |
512 | position: FilePosition, | 512 | position: FilePosition, |
513 | selections: Vec<FileRange>, | ||
513 | ) -> Cancelable<Result<SourceChange, SsrError>> { | 514 | ) -> Cancelable<Result<SourceChange, SsrError>> { |
514 | self.with_db(|db| { | 515 | self.with_db(|db| { |
515 | let edits = ssr::parse_search_replace(query, parse_only, db, position)?; | 516 | let edits = ssr::parse_search_replace(query, parse_only, db, position, selections)?; |
516 | Ok(SourceChange::from(edits)) | 517 | Ok(SourceChange::from(edits)) |
517 | }) | 518 | }) |
518 | } | 519 | } |