Skip to content

Commit

Permalink
send add/readonly file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
caseymcc committed Oct 28, 2024
1 parent ac4f0eb commit bbaebd8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion aider/command_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ def __init__(
def set_edit_format(self, edit_format):
self.edit_format = edit_format

def update_files(self, rel_fnames, abs_read_only_fnames):
msg = {
'added': list(rel_fnames),
'added_readonly': list(abs_read_only_fnames)
}
print(f"update_files: {msg}")
self.send_message('files', msg, False)

def get_input(
self,
root,
Expand All @@ -53,6 +61,8 @@ def get_input(
abs_read_only_fnames=None,
edit_format=None
):
self.update_files(rel_fnames, abs_read_only_fnames)

obj = self.get_command()

completer_instance = AutoCompleter(
Expand All @@ -64,7 +74,6 @@ def get_input(
abs_read_only_fnames=abs_read_only_fnames,
)


if obj:
send, inp = self.run_command(obj, commands, completer_instance)

Expand Down

0 comments on commit bbaebd8

Please sign in to comment.