mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Swtches to rust SSR query check
This commit is contained in:
parent
530ff9f57f
commit
b150965ed7
7 changed files with 63 additions and 20 deletions
|
@ -478,9 +478,10 @@ impl Analysis {
|
|||
pub fn structural_search_replace(
|
||||
&self,
|
||||
query: &str,
|
||||
parse_only: bool,
|
||||
) -> Cancelable<Result<SourceChange, SsrError>> {
|
||||
self.with_db(|db| {
|
||||
let edits = ssr::parse_search_replace(query, db)?;
|
||||
let edits = ssr::parse_search_replace(query, parse_only, db)?;
|
||||
Ok(SourceChange::source_file_edits("ssr", edits))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue