From 1e5fdfa4be7f3aba45c1a14f03b0b9cab44e5ad0 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 3 Sep 2024 15:39:18 -0700 Subject: [PATCH] refactor: Filter out duplicate filenames from special_fnames list --- aider/repomap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider/repomap.py b/aider/repomap.py index 70e68bfba..67b1bb35a 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -506,8 +506,11 @@ class RepoMap: other_rel_fnames = sorted(set(self.get_rel_fname(fname) for fname in other_fnames)) special_fnames = filter_important_files(other_rel_fnames) + special_fnames = [ # todo: only keep fnames which aren't in ranked_tags already + ] special_fnames = [(fn,) for fn in special_fnames] + ranked_tags = special_fnames + ranked_tags spin.step()