zed2: Store constructed terminal tooltip (#3566)

Allows the terminal to actually render its hyperlink tooltip

Release Notes:

- N/A
This commit is contained in:
Julia 2023-12-08 16:05:53 -05:00 committed by GitHub
commit ad05f22256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,6 +469,7 @@ impl TerminalElement {
.size_full()
.id("terminal-element")
.tooltip(move |cx| Tooltip::text(hovered_word.word.clone(), cx))
.into_any_element()
});
let TerminalContent {
@ -570,7 +571,7 @@ impl TerminalElement {
relative_highlighted_ranges,
mode: *mode,
display_offset: *display_offset,
hyperlink_tooltip: None, // todo!(tooltips)
hyperlink_tooltip,
gutter,
}
}