Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Re-enable directory-related tools (#29809)
Richard Feldman4d1df7bcd7eb
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex 593ec7cbbcb..47b65a7f6bf 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -669,7 +669,7 @@"contents": true,"diagnostics": true,"fetch": true,- "list_directory": false,+ "list_directory": true,"now": true,"find_path": true,"read_file": true,@@ -683,15 +683,16 @@"name": "Write","enable_all_context_servers": true,"tools": {- "copy_path": false,+ "copy_path": true,+ "create_directory": true,"create_file": true,- "delete_path": false,+ "delete_path": true,"diagnostics": true,"edit_file": true,"fetch": true,"list_directory": true,- "move_path": false,- "now": false,+ "move_path": true,+ "now": true,"find_path": true,"read_file": true,"grep": true,diff --git a/crates/assistant_tools/src/copy_path_tool.rs b/crates/assistant_tools/src/copy_path_tool.rsindex 4ea11e999be..07d4e583026 100644--- a/crates/assistant_tools/src/copy_path_tool.rs+++ b/crates/assistant_tools/src/copy_path_tool.rs@@ -45,7 +45,7 @@ impl Tool for CopyPathTool {}fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool {- true+ false}fn description(&self) -> String {diff --git a/crates/assistant_tools/src/create_directory_tool.rs b/crates/assistant_tools/src/create_directory_tool.rsindex 4ab8546cee8..a0ccd6f4255 100644--- a/crates/assistant_tools/src/create_directory_tool.rs+++ b/crates/assistant_tools/src/create_directory_tool.rs@@ -35,7 +35,7 @@ impl Tool for CreateDirectoryTool {}fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool {- true+ false}fn description(&self) -> String {diff --git a/crates/assistant_tools/src/delete_path_tool.rs b/crates/assistant_tools/src/delete_path_tool.rsindex fcac081e9cb..f5452d0eb82 100644--- a/crates/assistant_tools/src/delete_path_tool.rs+++ b/crates/assistant_tools/src/delete_path_tool.rs@@ -34,7 +34,7 @@ impl Tool for DeletePathTool {}fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool {- true+ false}fn description(&self) -> String {diff --git a/crates/assistant_tools/src/move_path_tool.rs b/crates/assistant_tools/src/move_path_tool.rsindex 89691694a6f..9c9493c4f53 100644--- a/crates/assistant_tools/src/move_path_tool.rs+++ b/crates/assistant_tools/src/move_path_tool.rs@@ -43,7 +43,7 @@ impl Tool for MovePathTool {}fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool {- true+ false}fn description(&self) -> String {