From 1291c2424ada18180d85c3e0aa9856c51f256d75 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 6 Jul 2023 12:52:33 -0700 Subject: [PATCH] better message for no /ls output --- aider/commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index 29f4bc63b..a4541c58d 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -336,6 +336,10 @@ class Commands: else: other_files.append(file) + if not chat_files and not other_files: + self.io.tool_output("\nNo files in chat or git repo.") + return + if chat_files: self.io.tool_output("Files in chat:\n") for file in chat_files: