Swtches to rust SSR query check

This commit is contained in:
Mikhail Modin
2020-03-15 21:23:18 +00:00
parent 530ff9f57f
commit b150965ed7
7 changed files with 63 additions and 20 deletions

View File

@@ -906,7 +906,10 @@ pub fn handle_document_highlight(
pub fn handle_ssr(world: WorldSnapshot, params: req::SsrParams) -> Result<req::SourceChange> {
let _p = profile("handle_ssr");
world.analysis().structural_search_replace(&params.arg)??.try_conv_with(&world)
world
.analysis()
.structural_search_replace(&params.query, params.parse_only)??
.try_conv_with(&world)
}
pub fn publish_diagnostics(world: &WorldSnapshot, file_id: FileId) -> Result<DiagnosticTask> {