Image viewer (#9425)

This builds on #9353 by adding an image viewer to Zed. Closes #5251.

Release Notes:

- Added support for rendering image files
([#5251](https://github.com/zed-industries/zed/issues/5251)).

<img width="1840" alt="image"
src="https://github.com/zed-industries/zed/assets/836375/3bccfa8e-aa5c-421f-9dfa-671caa274c3c">

---------

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
Kyle Kelley 2024-03-19 10:13:10 -07:00 committed by GitHub
parent 8d515a620f
commit 56bd96bc64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 422 additions and 45 deletions

View file

@ -46,6 +46,7 @@ fs.workspace = true
futures.workspace = true
go_to_line.workspace = true
gpui.workspace = true
image_viewer.workspace = true
install_cli.workspace = true
isahc.workspace = true
journal.workspace = true

View file

@ -15,6 +15,7 @@ use env_logger::Builder;
use fs::RealFs;
use futures::{future, StreamExt};
use gpui::{App, AppContext, AsyncAppContext, Context, SemanticVersion, Task};
use image_viewer;
use isahc::{prelude::Configurable, Request};
use language::LanguageRegistry;
use log::LevelFilter;
@ -165,6 +166,7 @@ fn main() {
command_palette::init(cx);
language::init(cx);
editor::init(cx);
image_viewer::init(cx);
diagnostics::init(cx);
copilot::init(
copilot_language_server_id,