Compare commits

...

5 Commits

Author SHA1 Message Date
Zed Bot
f3932acbb5 Bump to 0.164.1 for @osiewicz 2024-12-02 20:41:04 +00:00
gcp-cherry-pick-bot[bot]
9fb2099e9f workspace: Sanitize pinned tab count before usage (cherry-pick #21417) (#21423)
Cherry-picked workspace: Sanitize pinned tab count before usage (#21417)

Fixes all sorts of panics around usage of incorrect pinned tab count
that has been fixed in app itself, yet persists in user db.

Closes #ISSUE

Release Notes:

- N/A

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2024-12-02 21:33:28 +01:00
gcp-cherry-pick-bot[bot]
862a408214 toolchains: Run listing tasks on background thread (cherry-pick #21414) (#21420)
Cherry-picked toolchains: Run listing tasks on background thread
(#21414)

Potentially fixes #21404

This is a speculative fix, as while I was trying to repro this issue
I've noticed that introducing artificial delays in ToolchainLister::list
could impact apps responsiveness. These delays were essentially there to
stimulate PET taking a while to find venvs.

Release Notes:

- Improved app responsiveness in environments with multiple Python
virtual environments

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2024-12-02 21:25:57 +01:00
Mikayla Maki
9250d1d7ce Make Markdown images layout vertically instead of horizontally (#21247)
Release Notes:

- Fixed a bug in the Markdown preview where images in the same paragraph
would be rendered next to each other
2024-11-27 13:50:23 -05:00
Peter Tripp
389b202b75 v0.164.x preview 2024-11-27 09:48:24 -05:00
9 changed files with 16 additions and 13 deletions

2
Cargo.lock generated
View File

@@ -15614,7 +15614,7 @@ dependencies = [
[[package]]
name = "zed"
version = "0.164.0"
version = "0.164.1"
dependencies = [
"activity_indicator",
"anyhow",

View File

@@ -24,7 +24,7 @@ pub struct Toolchain {
pub as_json: serde_json::Value,
}
#[async_trait(?Send)]
#[async_trait]
pub trait ToolchainLister: Send + Sync {
async fn list(
&self,

View File

@@ -536,7 +536,7 @@ fn env_priority(kind: Option<PythonEnvironmentKind>) -> usize {
}
}
#[async_trait(?Send)]
#[async_trait]
impl ToolchainLister for PythonToolchainProvider {
async fn list(
&self,

View File

@@ -417,6 +417,7 @@ fn render_markdown_paragraph(parsed: &MarkdownParagraph, cx: &mut RenderContext)
cx.with_common_p(div())
.children(render_markdown_text(parsed, cx))
.flex()
.flex_col()
.into_any_element()
}

View File

@@ -311,12 +311,14 @@ impl LocalToolchainStore {
})
.ok()?
.await;
let language = registry.language_for_name(&language_name.0).await.ok()?;
let toolchains = language
.toolchain_lister()?
.list(root.to_path_buf(), project_env)
.await;
Some(toolchains)
cx.background_executor()
.spawn(async move {
let language = registry.language_for_name(&language_name.0).await.ok()?;
let toolchains = language.toolchain_lister()?;
Some(toolchains.list(root.to_path_buf(), project_env).await)
})
.await
})
}
pub(crate) fn active_toolchain(

View File

@@ -1870,7 +1870,7 @@ impl Pane {
fn unpin_tab_at(&mut self, ix: usize, cx: &mut ViewContext<'_, Self>) {
maybe!({
let pane = cx.view().clone();
self.pinned_tab_count = self.pinned_tab_count.checked_sub(1).unwrap();
self.pinned_tab_count = self.pinned_tab_count.checked_sub(1)?;
let destination_index = self.pinned_tab_count;
let id = self.item_for_index(ix)?.item_id();

View File

@@ -473,7 +473,7 @@ impl SerializedPane {
})?;
}
pane.update(cx, |pane, _| {
pane.set_pinned_count(self.pinned_count);
pane.set_pinned_count(self.pinned_count.min(items.len()));
})?;
anyhow::Ok(items)

View File

@@ -2,7 +2,7 @@
description = "The fast, collaborative code editor."
edition = "2021"
name = "zed"
version = "0.164.0"
version = "0.164.1"
publish = false
license = "GPL-3.0-or-later"
authors = ["Zed Team <hi@zed.dev>"]

View File

@@ -1 +1 @@
dev
preview