mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
fix: Make _stop_waiting_spinner a method of Coder
This commit is contained in:
parent
ede3061fe0
commit
6351964bcd
1 changed files with 9 additions and 8 deletions
|
@ -572,14 +572,6 @@ class Coder:
|
||||||
if not self.pretty:
|
if not self.pretty:
|
||||||
return False
|
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
|
# only show pretty output if fences are the normal triple-backtick
|
||||||
if self.fence[0][0] != "`":
|
if self.fence[0][0] != "`":
|
||||||
|
@ -587,6 +579,15 @@ class Coder:
|
||||||
|
|
||||||
return True
|
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):
|
def get_abs_fnames_content(self):
|
||||||
for fname in list(self.abs_fnames):
|
for fname in list(self.abs_fnames):
|
||||||
content = self.io.read_text(fname)
|
content = self.io.read_text(fname)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue