diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide/src/display/short_label.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ide/src/display/short_label.rs b/crates/ide/src/display/short_label.rs index 7ac050473..84b8883de 100644 --- a/crates/ide/src/display/short_label.rs +++ b/crates/ide/src/display/short_label.rs | |||
@@ -61,7 +61,11 @@ impl ShortLabel for ast::BlockExpr { | |||
61 | 61 | ||
62 | impl ShortLabel for ast::TypeAlias { | 62 | impl ShortLabel for ast::TypeAlias { |
63 | fn short_label(&self) -> Option<String> { | 63 | fn short_label(&self) -> Option<String> { |
64 | short_label_from_node(self, "type ") | 64 | let mut buf = short_label_from_node(self, "type ")?; |
65 | if let Some(type_ref) = self.ty() { | ||
66 | format_to!(buf, " = {}", type_ref.syntax()); | ||
67 | } | ||
68 | Some(buf) | ||
65 | } | 69 | } |
66 | } | 70 | } |
67 | 71 | ||