Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
workspace: Fix read-only button tooltip for non-toggleable buffers (#48998)
Lukas Wirthe9a8ef1c9e52
diff --git a/crates/gpui/src/platform/windows/directx_renderer.rs b/crates/gpui/src/platform/windows/directx_renderer.rsindex 8e7a0ac1424..79b79c55138 100644--- a/crates/gpui/src/platform/windows/directx_renderer.rs+++ b/crates/gpui/src/platform/windows/directx_renderer.rs@@ -1016,7 +1016,7 @@ impl<T> PipelineState<T> {) -> Result<()> {if self.buffer_size < data.len() {let new_buffer_size = data.len().next_power_of_two();- log::info!(+ log::debug!("Updating {} buffer size from {} to {}",self.label,self.buffer_size,diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rsindex 7c59329f428..4b355a2d855 100644--- a/crates/workspace/src/pane.rs+++ b/crates/workspace/src/pane.rs@@ -2802,7 +2802,16 @@ impl Pane {.icon_size(IconSize::Small).disabled(!toggleable).tooltip(move |_, cx| {- Tooltip::with_meta("Unlock File", None, "This will make this file editable", cx)+ if toggleable {+ Tooltip::with_meta(+ "Unlock File",+ None,+ "This will make this file editable",+ cx,+ )+ } else {+ Tooltip::with_meta("Locked File", None, "This file is read-only", cx)+ }}).on_click(cx.listener(move |pane, _, window, cx| {if let Some(item) = pane.item_for_index(ix) {diff --git a/crates/worktree/src/worktree.rs b/crates/worktree/src/worktree.rsindex 86589423022..69b0be24e7f 100644--- a/crates/worktree/src/worktree.rs+++ b/crates/worktree/src/worktree.rs@@ -4469,7 +4469,7 @@ impl BackgroundScanner {Ok(Some(metadata)) => metadata,Ok(None) => continue,Err(err) => {- log::error!("error processing {child_abs_path:?}: {err:#}");+ log::error!("error processing {:?}: {err:#}", child_abs_path.display());continue;}};