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,14 +572,6 @@ class Coder:
if not self.pretty:
return False
def _stop_waiting_spinner(self):
"""Stop and clear the waiting spinner if it is running."""
spinner = getattr(self, "waiting_spinner", None)
if spinner:
try:
spinner.stop()
finally:
self.waiting_spinner = None
# only show pretty output if fences are the normal triple-backtick
if self.fence[0][0] != "`":
@ -587,6 +579,15 @@ class Coder:
return True
def _stop_waiting_spinner(self):
"""Stop and clear the waiting spinner if it is running."""
spinner = getattr(self, "waiting_spinner", None)
if spinner:
try:
spinner.stop()
finally:
self.waiting_spinner = None
def get_abs_fnames_content(self):
for fname in list(self.abs_fnames):
content = self.io.read_text(fname)