Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds comment processing command #2780

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

aweis89
Copy link
Contributor

@aweis89 aweis89 commented Jan 5, 2025

Resolves #2760 #2641

  • Decouples comment processing logic from file watching by creating a new dedicated class
  • Adds a new /comments <files> command to explicitly tell Aider to process the comments in the specified files (regardless of whether --watch-files is enabled)

Extract the comment processing logic from FileWatcher into a new dedicated
CommentProcessor class to improve code organization and reusability. This
allows comment processing to be used independently of file watching.
Rename test_watch.py to test_comment_processor.py to match the renamed
implementation class and better reflect its testing scope. Updates imports
and class references accordingly.
@aweis89 aweis89 changed the title Feat/add process comments cmd Feature adds comment processing command Jan 5, 2025
@aweis89 aweis89 changed the title Feature adds comment processing command Adds comment processing command Jan 5, 2025
Improve variable naming by changing 'watcher' to more descriptive
'comment_processor' to better reflect its purpose in the test file. This
enhances code readability and maintains consistent naming convention.
@aweis89
Copy link
Contributor Author

aweis89 commented Jan 7, 2025

@paul-gauthier if this is acceptable, I'd be happy to add some documentation as per your guidance

Remove explicit type hints from get_ai_comments and process_changes methods in
CommentProcessor class to maintain consistency with the rest of the codebase.
Remove unnecessary typing import since no explicit type hints are being used
in the comment_processor module.
Add missing colon after the process_changes method definition in the
CommentProcessor class to fix syntax error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New comment processing command proposal
1 participant