Skip to content

Commit

Permalink
sphinx-agent: Reset warning count after each build
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Apr 12, 2024
1 parent 0ba1f04 commit 211058f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/esbonio/esbonio/sphinx_agent/handlers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ def build_sphinx_app(self, request: types.BuildRequest):
id=request.id, code=-32603, message=f"sphinx-build failed: {message}"
)

finally:
self.app._warncount = 0

def notify_exit(self, request: types.ExitNotification):
"""Sent from the client to signal that the agent should exit."""
sys.exit(0)
Expand Down

0 comments on commit 211058f

Please sign in to comment.