Show more info in the UI and logs (#33841)

Kirill Bulatov created

Addresses the `The binding is not displayed, though:` part from
https://github.com/zed-industries/zed/discussions/29498#discussioncomment-13649543

Release Notes:

- N/A

Change summary

crates/task/src/vscode_format.rs | 5 ++++-
crates/workspace/src/pane.rs     | 4 +---
2 files changed, 5 insertions(+), 4 deletions(-)

Detailed changes

crates/task/src/vscode_format.rs 🔗

@@ -47,7 +47,10 @@ impl VsCodeTaskDefinition {
         replacer: &EnvVariableReplacer,
     ) -> anyhow::Result<Option<TaskTemplate>> {
         if self.other_attributes.contains_key("dependsOn") {
-            log::warn!("Skipping deserializing of a task with the unsupported `dependsOn` key");
+            log::warn!(
+                "Skipping deserializing of a task `{}` with the unsupported `dependsOn` key",
+                self.label
+            );
             return Ok(None);
         }
         // `type` might not be set in e.g. tasks that use `dependsOn`; we still want to deserialize the whole object though (hence command is an Option),

crates/workspace/src/pane.rs 🔗

@@ -2735,9 +2735,7 @@ impl Pane {
                                 .when(visible_in_project_panel, |menu| {
                                     menu.entry(
                                         "Reveal In Project Panel",
-                                        Some(Box::new(RevealInProjectPanel {
-                                            entry_id: Some(entry_id),
-                                        })),
+                                        Some(Box::new(RevealInProjectPanel::default())),
                                         window.handler_for(&pane, move |pane, _, cx| {
                                             pane.project
                                                 .update(cx, |_, cx| {