feat: Add abs_read_only_fnames to io.get_input() and AutoCompleter

This commit is contained in:
Paul Gauthier (aider) 2024-08-09 18:39:31 -04:00
parent e984d9cd66
commit f77c6719fe

View file

@ -48,7 +48,9 @@ class AutoCompleter(Completer):
for rel_fname in rel_fnames:
self.words.add(rel_fname)
fname = Path(root) / rel_fname
all_fnames = [Path(root) / rel_fname for rel_fname in rel_fnames] + list(abs_read_only_fnames)
for fname in all_fnames:
try:
with open(fname, "r", encoding=self.encoding) as f:
content = f.read()