From f313ac45af0b9c81cf411a8a4a6873e742bb8562 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 21 Apr 2019 22:13:52 +0300 Subject: use structured editing API for fill struct assist --- crates/ra_assists/src/assist_ctx.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_assists/src/assist_ctx.rs') diff --git a/crates/ra_assists/src/assist_ctx.rs b/crates/ra_assists/src/assist_ctx.rs index e80e35738..f46de61eb 100644 --- a/crates/ra_assists/src/assist_ctx.rs +++ b/crates/ra_assists/src/assist_ctx.rs @@ -161,6 +161,10 @@ impl AssistBuilder { self.target = Some(target) } + pub(crate) fn text_edit_builder(&mut self) -> &mut TextEditBuilder { + &mut self.edit + } + fn build(self) -> AssistAction { AssistAction { edit: self.edit.finish(), -- cgit v1.2.3