From a3a510308c65a6ff71ccad6a779e907edfb77f33 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 1 Dec 2024 08:26:21 -0800 Subject: [PATCH] style: fix indentation in comment instructions template --- aider/watch.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aider/watch.py b/aider/watch.py index 5d0f0d997..87e5ddcad 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -175,9 +175,9 @@ class FileWatcher: from grep_ast import TreeContext res = """The "ai" comments below can be found in the code files I've shared with you. - They contain your instructions. - Make the requested changes. - Be sure to remove all these "ai" comments from the code! +They contain your instructions. +Make the requested changes. +Be sure to remove all these "ai" comments from the code! """ @@ -195,6 +195,7 @@ class FileWatcher: # Convert comment line numbers to line indices (0-based) lois = [ln - 1 for ln, _ in zip(line_nums, comments) if ln > 0] + # ai: just remove this comment! context = TreeContext( rel_fname, code, @@ -204,7 +205,7 @@ class FileWatcher: last_line=False, margin=0, mark_lois=False, - loi_pad=0, + loi_pad=3, show_top_of_file_parent_scope=False, ) context.lines_of_interest = set()