Markdown preview image rendering (#21082)
Closes https://github.com/zed-industries/zed/issues/13246 Supersedes: https://github.com/zed-industries/zed/pull/16192 I couldn't push to the git fork this user was using, so here's the exact same PR but with some style nits implemented. Release Notes: - Added image rendering to the Markdown preview --------- Co-authored-by: dovakin0007 <dovakin0007@gmail.com> Co-authored-by: dovakin0007 <73059450+dovakin0007@users.noreply.github.com>
This commit is contained in:
parent
becc36380f
commit
96854c68ea
7 changed files with 538 additions and 181 deletions
|
@ -238,11 +238,8 @@ impl NotificationStore {
|
|||
) -> Result<()> {
|
||||
this.update(&mut cx, |this, cx| {
|
||||
if let Some(notification) = envelope.payload.notification {
|
||||
if let Some(rpc::Notification::ChannelMessageMention {
|
||||
message_id,
|
||||
sender_id: _,
|
||||
channel_id: _,
|
||||
}) = Notification::from_proto(¬ification)
|
||||
if let Some(rpc::Notification::ChannelMessageMention { message_id, .. }) =
|
||||
Notification::from_proto(¬ification)
|
||||
{
|
||||
let fetch_message_task = this.channel_store.update(cx, |this, cx| {
|
||||
this.fetch_channel_messages(vec![message_id], cx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue