From 4cb82c334d98d7eb608d076fda95923647d61043 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Tue, 14 Jan 2020 11:49:14 -0500 Subject: More UI friendly labels --- crates/ra_assists/src/assists/add_impl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_assists/src/assists/add_impl.rs') diff --git a/crates/ra_assists/src/assists/add_impl.rs b/crates/ra_assists/src/assists/add_impl.rs index 7da0cfd0d..4b326c837 100644 --- a/crates/ra_assists/src/assists/add_impl.rs +++ b/crates/ra_assists/src/assists/add_impl.rs @@ -30,7 +30,7 @@ use crate::{Assist, AssistCtx, AssistId}; pub(crate) fn add_impl(ctx: AssistCtx) -> Option { let nominal = ctx.find_node_at_offset::()?; let name = nominal.name()?; - ctx.add_assist(AssistId("add_impl"), "add impl", |edit| { + ctx.add_assist(AssistId("add_impl"), format!("Implement {}", name.text().as_str()), |edit| { edit.target(nominal.syntax().text_range()); let type_params = nominal.type_param_list(); let start_offset = nominal.syntax().text_range().end(); -- cgit v1.2.3