fix: Make _stop_waiting_spinner a method of Coder

This commit is contained in:
Paul Gauthier (aider) 2025-05-08 15:43:03 -07:00
parent ede3061fe0
commit 6351964bcd

View file

@ -572,6 +572,13 @@ class Coder:
if not self.pretty:
return False
# only show pretty output if fences are the normal triple-backtick
if self.fence[0][0] != "`":
return False
return True
def _stop_waiting_spinner(self):
"""Stop and clear the waiting spinner if it is running."""
spinner = getattr(self, "waiting_spinner", None)
@ -581,12 +588,6 @@ class Coder:
finally:
self.waiting_spinner = None
# only show pretty output if fences are the normal triple-backtick
if self.fence[0][0] != "`":
return False
return True
def get_abs_fnames_content(self):
for fname in list(self.abs_fnames):
content = self.io.read_text(fname)